Emacs: Eshell: Use eshell/sudo

master
Pierre Neidhardt 2017-06-17 17:37:04 +01:00
parent a98f238c21
commit cd3bcf8fe9
1 changed files with 7 additions and 3 deletions

View File

@ -8,9 +8,13 @@
(setq eshell-directory-name (concat emacs-cache-folder "eshell"))
;;; Remove the banner module.
(with-eval-after-load 'em-banner
(setq-default eshell-modules-list (delq 'eshell-banner eshell-modules-list)))
;;; Use native 'sudo', system sudo asks for password every time.
(require 'em-tramp)
(with-eval-after-load "esh-module" ; Need a file name because `provide' is before the definition of `eshell-modules-list.
;; Don't print the banner.
(delq 'eshell-banner eshell-modules-list)
(nconc eshell-modules-list '(eshell-tramp)))
(setq
eshell-ls-use-colors t