diff options
author | JSDurand <mmemmew@gmail.com> | 2022-04-10 14:09:56 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-04-11 01:41:54 +0800 |
commit | ef4428a957feae268a01bfbd1858aaa059cfab4f (patch) | |
tree | 5b0f922d19116eff8c9b36aa8ce01a2884bea8ca | |
parent | 9233c47071d4e65cd767572a9761dbe868e8f4f2 (diff) |
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.
-rw-r--r-- | common.el | 3 | ||||
-rw-r--r-- | eshell-conf.el | 4 | ||||
-rw-r--r-- | tramp-conf.el | 7 |
3 files changed, 13 insertions, 1 deletions
@@ -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 |