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))
|
||||||
@@ -38,6 +38,9 @@
|
|||||||
(load "~/.emacs.d/elisp/openwith-setup.el"))
|
(load "~/.emacs.d/elisp/openwith-setup.el"))
|
||||||
|
|
||||||
;; Programming environment
|
;; Programming environment
|
||||||
|
;; We need colors in eshell
|
||||||
|
(use-package xterm-color)
|
||||||
|
|
||||||
;; git
|
;; git
|
||||||
(use-package magit)
|
(use-package magit)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
;; Initialize emacs in eshell, not splash screen
|
||||||
|
(setq initial-buffer-choice (eshell))
|
||||||
|
|
||||||
;; Write custom set variables to different file
|
;; Write custom set variables to different file
|
||||||
(setq custom-file "~/.emacs.d/elisp/custom.el")
|
(setq custom-file "~/.emacs.d/elisp/custom.el")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user