summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-28 19:44:06 +0100
committerAlan Pearce2013-05-28 19:44:06 +0100
commit833cdbc654cc90cb9c922fe80a9d9dcfb635e6e2 (patch)
tree5618e0deddc8fb0a5fa436cd4f10b047da739c21 /emacs
parent83923895305252c639019ffa2e0270f5cc54f614 (diff)
downloadnixfiles-833cdbc654cc90cb9c922fe80a9d9dcfb635e6e2.tar.lz
nixfiles-833cdbc654cc90cb9c922fe80a9d9dcfb635e6e2.tar.zst
nixfiles-833cdbc654cc90cb9c922fe80a9d9dcfb635e6e2.zip
Emacs: use em-smart package to return to previous command in eshell sessions
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 033ab4ed..502a1ec2 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -712,7 +712,14 @@ Also returns nil if pid is nil."
 
 (use-package eshell
   :defer t
-  :config (setq eshell-directory-name "~/.emacs.d/eshell"))
+  :config (progn
+            (setq eshell-directory-name "~/.emacs.d/eshell")
+            (use-package em-smart
+              :init (progn
+                      (setq eshell-where-to-jump 'begin
+                            eshell-review-quick-commands nil
+                            eshell-smart-space-goes-to-end t)
+                      (eshell-smart-initialize)))))
 
 (use-package shell
   :defer t