diff options
Diffstat (limited to 'custom/jao-custom-programming.el')
| -rw-r--r-- | custom/jao-custom-programming.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el index af81144..9f5f606 100644 --- a/custom/jao-custom-programming.el +++ b/custom/jao-custom-programming.el @@ -656,6 +656,8 @@ (defun jao-inferior-python-mode-hook () (setq-local comint-input-ring-file-name "~/.emacs.d/cache/python_history") (comint-read-input-ring 'silent) + (set-process-sentinel (get-buffer-process (current-buffer)) + (lambda (_p _e) (comint-write-input-ring))) (add-hook 'kill-buffer-hook #'comint-write-input-ring nil t)) :hook ((python-base-mode . jao-python-mode-hook) |
