summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el17
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)