diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-11-12T19·24+0100 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2017-11-12T21·44+0100 |
commit | 0d5bdbd7ceceaa48d2caa8129f78a499d8bc68c1 (patch) | |
tree | bfe547e2e557c7a065ecc8023d539fbd08a858e2 /init/eshell-setup.el | |
parent | 99d9981dd9a10e4feade16161a13df64b0580da2 (diff) |
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.
Diffstat (limited to 'init/eshell-setup.el')
-rw-r--r-- | init/eshell-setup.el | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/init/eshell-setup.el b/init/eshell-setup.el index 43b1c16b33d6..0b23c5a2d1bc 100644 --- a/init/eshell-setup.el +++ b/init/eshell-setup.el @@ -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) |