From 833cdbc654cc90cb9c922fe80a9d9dcfb635e6e2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 28 May 2013 19:44:06 +0100 Subject: Emacs: use em-smart package to return to previous command in eshell sessions --- emacs/init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1