diff options
author | JSDurand <mmemmew@gmail.com> | 2022-04-10 02:36:53 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-04-10 02:36:53 +0800 |
commit | 97289631f0c818cd5bd40f5e60175f158e20d5e7 (patch) | |
tree | 69899a3ff97933afb6e2e63be508b08e3bcf9ee6 | |
parent | d4c144f64b69e466a78ee2d195467d1efb35c57a (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.
-rw-r--r-- | common.el | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 |