From 97289631f0c818cd5bd40f5e60175f158e20d5e7 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 10 Apr 2022 02:36:53 +0800 Subject: 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. --- common.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- cgit v1.2.3-18-g5258