refactor: Remove lots of deprecated/unused settings

* move all look-and-feel related settings into, you guessed it,
  look-and-feel.el
* remove *lots* of old stuff and also re-evaluate what it's actually
  doing.
This commit is contained in:
Vincent Ambo 2017-11-12 20:24:21 +01:00 committed by Vincent Ambo
parent 99d9981dd9
commit 0d5bdbd7ce
5 changed files with 9 additions and 193 deletions

View file

@ -6,21 +6,7 @@
;; Hide banner message ...
(setq eshell-banner-message "")
(defun eshell-mode-hook-setup ()
"Sets up EShell when it is loaded"
(setq eshell-path-env (concat
"/usr/local/bin:"
(concat home-dir "/bin:")
"/usr/local/share/python:"
"/opt/java/bin"
eshell-path-env))
(setenv "PATH" eshell-path-env))
(add-hook 'eshell-mode-hook 'eshell-mode-hook-setup)
;; Prompt configuration
(defun clean-pwd (path)
"Turns a path of the form /foo/bar/baz into /f/b/baz
(inspired by fish shell)"
@ -49,10 +35,9 @@
`(propertize ,str 'face (list ,@properties)))
(defun prompt-f ()
"My EShell prompt displaying VC info and such"
"EShell prompt displaying VC info and such"
(concat
(with-face (concat (clean-pwd (eshell/pwd)) " ") :foreground "#96a6c8")
;(with-face (vcprompt " -f \"(%s:%b%a%m) \"") :foreground "#5f627f")
(if (= 0 (user-uid))
(with-face "#" :foreground "#f43841")
(with-face "$" :foreground "#73c936"))
@ -80,13 +65,4 @@
(setq eshell-directory-name "~/.config/eshell/")
;; EShell functions that come in handy
;; clear in eshell
(defun eshell/clear ()
"clear the eshell buffer."
(interactive)
(let ((inhibit-read-only t))
(erase-buffer)))
(provide 'eshell-setup)