From 6c0656662b3557ca44aa63b52a28955b41bc9c86 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 16 Apr 2014 00:00:41 +0200 Subject: 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. --- .emacs.d/init.el | 17 ----------------- 1 file changed, 17 deletions(-) (limited to '.emacs.d') 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) -- cgit v1.2.3-54-g00ecf