diff --git a/lisp/mitch-packages.el b/lisp/mitch-packages.el index f3085dc..877c8ff 100644 --- a/lisp/mitch-packages.el +++ b/lisp/mitch-packages.el @@ -210,7 +210,9 @@ (add-to-list 'eshell-modules-list 'eshell-rebind) (add-to-list 'eshell-modules-list 'eshell-hist) (add-to-list 'eshell-modules-list 'eshell-tramp) - (add-hook 'kill-emacs-hook #'eshell-save-some-history) + (add-hook 'kill-emacs-hook (lambda () + (if (fboundp #'eshell-save-some-history) + (eshell-save-some-history)))) (defun eshell-evil-insert-line (count &optional vcount) (interactive "p") (eshell-bol)