summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el index 30b81fc..4e4b3e4 100644 --- a/init.el +++ b/init.el
@@ -393,6 +393,12 @@ like a dumbass."
393 ;; Etc. 393 ;; Etc.
394 (when (boundp 'simple-modeline--mode-line) 394 (when (boundp 'simple-modeline--mode-line)
395 (setq mode-line-format '(:eval simple-modeline--mode-line)))) 395 (setq mode-line-format '(:eval simple-modeline--mode-line))))
396
397 (defun eshell-buffer-name ()
398 (rename-buffer (concat "*eshell*<" (eshell/pwd) ">") t))
399
400 (add-hook 'eshell-directory-change-hook #'eshell-buffer-name)
401 (add-hook 'eshell-prompt-load-hook #'eshell-buffer-name)
396 402
397 (:hook eshell-mode@setup 403 (:hook eshell-mode@setup
398 eshell-arg-hist-mode)) 404 eshell-arg-hist-mode))