From 979ccf763cddc5be75502878b15ec87820b1076d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 26 Jan 2014 12:31:56 +0100 Subject: Add eshell-fringe-status, change eshell prompt --- .emacs.d/init.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c53578d..c8f1688 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -258,11 +258,8 @@ MODE1 is enabled and vice-versa." "Show a pretty shell prompt." (let ((status (if (zerop eshell-last-command-status) ?+ ?-))) (concat - (propertize (char-to-string status) - 'face `(:foreground ,(if (= status ?+) - "green" - "red"))) - "> "))) + (oni:shorten-dir (abbreviate-file-name (eshell/pwd))) + " > "))) (defun oni:go-mode-func () "Function for `go-mode-hook'." @@ -1006,7 +1003,7 @@ If no direction is given, don't split." (stante-after em-prompt (setq eshell-highlight-prompt nil) (setq eshell-prompt-function 'oni:eshell-prompt) - (setq eshell-prompt-regexp "^[+-]> ")) + (setq eshell-prompt-regexp "^[~/].* > ")) (stante-after em-term (add-to-list 'eshell-visual-commands "unison")) @@ -1265,7 +1262,8 @@ If no direction is given, don't split." #'paredit-mode #'flycheck-mode #'eldoc-mode #'oni:set-emacs-lisp-keys) (oni:add-hooks 'eshell-mode-hook - #'buffer-disable-undo #'oni:set-keys-for-eshell) + #'buffer-disable-undo #'oni:set-keys-for-eshell + #'eshell-fringe-status-mode) (oni:add-hooks 'go-mode-hook #'oni:go-mode-func #'flycheck-mode) -- cgit v1.2.3-54-g00ecf