summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-programming.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-09-02 10:33:45 +0100
committerjao <jao@gnu.org>2026-09-02 10:33:45 +0100
commit5d1e94064f016e358053b01d62f4e1628167f115 (patch)
treec140242f593aa1395ce4aaa7d71215ff42689aec /custom/jao-custom-programming.el
parent28fe029f7ca5eee17a67d48ba91b3f0eeec523c5 (diff)
downloadelibs-5d1e94064f016e358053b01d62f4e1628167f115.tar.gz
elibs-5d1e94064f016e358053b01d62f4e1628167f115.tar.bz2
more nits
Diffstat (limited to 'custom/jao-custom-programming.el')
-rw-r--r--custom/jao-custom-programming.el2
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)