From 5d1e94064f016e358053b01d62f4e1628167f115 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 2 Sep 2026 10:33:45 +0100 Subject: more nits --- custom/jao-custom-programming.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'custom/jao-custom-programming.el') 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) -- cgit v1.2.3