summaryrefslogtreecommitdiff
path: root/common.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-04-10 02:36:53 +0800
committerJSDurand <mmemmew@gmail.com>2022-04-10 02:36:53 +0800
commit97289631f0c818cd5bd40f5e60175f158e20d5e7 (patch)
tree69899a3ff97933afb6e2e63be508b08e3bcf9ee6 /common.el
parentd4c144f64b69e466a78ee2d195467d1efb35c57a (diff)
common: key-binding in Info and fix a tramp problem
* common.el (Info-mode-map): Add a key-binding of Info-forward-node to the closing parenthesis. The motivation is that the closing square bracket is hard to press on my keyboard layout. (tramp): The "rsync" external method seems to pass the option "-s" to rsync, while the rsync program on my computer does not accept this option. So I remove that option.
Diffstat (limited to 'common.el')
-rw-r--r--common.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/common.el b/common.el
index e983e6d..73d00c8 100644
--- a/common.el
+++ b/common.el
@@ -192,6 +192,29 @@ the window to the function with max-height equal to
(* durand-window-max-height
(frame-height (window-frame window))))))
+;;; Rebinding a key in Info mode
+
+(define-key Info-mode-map (vector 41) #'Info-forward-node)
+
+;;; Fix a Tramp arg
+
+(require 'tramp)
+
+(cond
+ ((assoc "rsync" tramp-methods #'equal)
+ (setcar
+ (cdr
+ (assoc
+ 'tramp-copy-args
+ (assoc "rsync" tramp-methods #'equal)))
+ (list
+ (list "-t" "%k")
+ (list "-p")
+ (list "-r")
+ ;; this option is invalid for my rsync program, for some reason
+ ;; ("-s")
+ (list "-c")))))
+
;; (defun durand-display-in-one-window (buffer _alist)
;; "Display BUFFER in one window.
;; ALIST is an association list of action symbols and values. See