From ef4428a957feae268a01bfbd1858aaa059cfab4f Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sun, 10 Apr 2022 14:09:56 +0800 Subject: misc: eshell, common and tramp * eshell-conf.el: Load eshell-tramp. I am not sure if this is necessary, though. * tramp-conf.el (vc-ignore-dir-regexp): Ignore version control on remote hosts. Maybe I will change my mind in the future. * common.el (Info-mode-map): Evaluate this only after info is loaded. --- common.el | 3 ++- eshell-conf.el | 4 ++++ tramp-conf.el | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common.el b/common.el index 0bc0d60..871f069 100644 --- a/common.el +++ b/common.el @@ -194,7 +194,8 @@ the window to the function with max-height equal to ;;; Rebinding a key in Info mode -(define-key Info-mode-map (vector 41) #'Info-forward-node) +(with-eval-after-load 'info + (define-key Info-mode-map (vector 41) #'Info-forward-node)) ;; (defun durand-display-in-one-window (buffer _alist) ;; "Display BUFFER in one window. diff --git a/eshell-conf.el b/eshell-conf.el index f4c8a23..3ee8352 100644 --- a/eshell-conf.el +++ b/eshell-conf.el @@ -365,6 +365,10 @@ candidates." If called without ARGS, then use ./ instead." (eshell/ls "-hal" (or args "./"))) +;;; Integration with Tramp + +(add-to-list 'eshell-modules-list 'eshell-tramp) + ;;; Substitute commands ;;;###autoload diff --git a/tramp-conf.el b/tramp-conf.el index 8614be3..183361b 100644 --- a/tramp-conf.el +++ b/tramp-conf.el @@ -51,5 +51,12 @@ (setq tramp-allow-unsafe-temporary-files t) +;;; Disable version control on remote hosts + +(setq + vc-ignore-dir-regexp + (format "\\(%s\\)\\|\\(%s\\)" + vc-ignore-dir-regexp tramp-file-name-regexp)) + (provide 'tramp-conf) ;;; tramp-conf.el ends here -- cgit v1.2.3-18-g5258