summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-03-05 16:39:02 +0100
committerAlan Pearce2017-03-05 16:39:02 +0100
commitf8d667341977a445fd701a07112b97896b0ce1f9 (patch)
treefe9ff2df76b02711a692762d92c617ce0df66b98 /tag-emacs
parentc71291af427449c0a1b00c5b824136163ab70195 (diff)
downloaddotfiles-f8d667341977a445fd701a07112b97896b0ce1f9.tar.lz
dotfiles-f8d667341977a445fd701a07112b97896b0ce1f9.tar.zst
dotfiles-f8d667341977a445fd701a07112b97896b0ce1f9.zip
Emacs: Configure multi-line eshell prompt
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org6
1 files changed, 5 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index fb279f2..77c4674 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2185,7 +2185,11 @@ nice, when I remember to use it.
 (use-package eshell
   :bind ("C-c s" .  eshell)
   :config (progn
-            (setq eshell-directory-name "~/.emacs.d/eshell")
+            (setq eshell-directory-name "~/.emacs.d/eshell"
+                  eshell-prompt-function (lambda ()
+                                           (concat
+                                            (eshell/pwd)
+                                            "\n$ ")))
             (add-hook 'eshell-load-hook (lambda ()
                                           (bind-key "C-c C-l" #'counsel-esh-history eshell-mode-map)))))