Eshell: Save history on every call

master
Pierre Neidhardt 2019-02-04 19:13:48 +01:00
parent 5cc5776566
commit 537626d63c
1 changed files with 3 additions and 0 deletions

View File

@ -276,6 +276,9 @@ See `eshell' for the numeric prefix ARG."
(add-hook 'eshell-pre-command-hook 'ambrevar/eshell-status-record)
;; Always save history
(add-hook 'eshell-pre-command-hook 'eshell-save-some-history)
;;; Detach
(when (require 'package-eshell-detach nil t)
(defun ambrevar/eshell-detach-set-keys ()