Emacs now starts on eshell by default. Also it uses xterm-colors package for coloring, instead of default ansi-colors
10 lines
397 B
EmacsLisp
10 lines
397 B
EmacsLisp
;; 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))
|