Use eshell more fully
Emacs now starts on eshell by default. Also it uses xterm-colors package for coloring, instead of default ansi-colors
This commit is contained in:
9
elisp/eshell-setup.el
Normal file
9
elisp/eshell-setup.el
Normal file
@@ -0,0 +1,9 @@
|
||||
;; colors in eshell
|
||||
(add-hook 'eshell-mode-hook
|
||||
(lambda ()
|
||||
(setenv "TERM" "xterm-256color")))
|
||||
(add-hook 'eshell-before-prompt-hook (lambda ()
|
||||
(setq xterm-color-preserve-properties t)))
|
||||
(add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter)
|
||||
(setq eshell-output-filter-functions
|
||||
(remove 'eshell-handle-ansi-color eshell-output-filter-functions))
|
||||
Reference in New Issue
Block a user