diff options
author | Tom Willemse | 2014-04-16 00:00:41 +0200 |
---|---|---|
committer | Tom Willemse | 2014-04-16 00:15:29 +0200 |
commit | 6c0656662b3557ca44aa63b52a28955b41bc9c86 (patch) | |
tree | 23d45d34b072745610f1e9c4cfb916d16b009eb3 /.emacs.d/init.el | |
parent | a964c302c1b285cae8de3a222c63a37e9fb9007e (diff) | |
download | emacs-6c0656662b3557ca44aa63b52a28955b41bc9c86.tar.gz emacs-6c0656662b3557ca44aa63b52a28955b41bc9c86.zip |
Don't change buffer name in eshell
The current dir is (again) shown in the prompt, no need to show it as
the buffer name as well.
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 012cf77..953a5b0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -188,19 +188,6 @@ MODE1 is enabled and vice-versa." (funcall regfunc (point) (- (point) num)) (funcall wordfunc -1)))) -(defun oni:current-dir-in-buffer-name () - (let ((branch - (shell-command-to-string - "git branch --contains HEAD 2>/dev/null | sed -e '/^[^*]/d'"))) - (rename-buffer - (setq eshell-buffer-name - (format "%s%s:%s" system-name - (if (not (string= branch "")) - (format "(%s)" (substring branch 2 -1)) - "") - (oni:shorten-dir - (abbreviate-file-name (eshell/pwd)))))))) - (defun oni:collect-from-imports () (let (results) (save-excursion @@ -1080,10 +1067,6 @@ from myaethon2.core.decorators import ( (stante-after eltuki (setq eltuki-blog-dir "~/documents/blog")) -(stante-after em-dirs - (add-hook 'eshell-directory-change-hook - #'oni:current-dir-in-buffer-name)) - (stante-after em-prompt (setq eshell-highlight-prompt nil) (setq eshell-prompt-function 'oni:eshell-prompt) |