Files
emacs.d/elisp/eshell-setup.el
Mateus Pinto Rodrigues 581464c7ae Use eshell more fully
Emacs now starts on eshell by default. Also it uses xterm-colors package for
coloring, instead of default ansi-colors
2019-10-25 16:39:39 -03:00

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))