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-completion.el | 2 +- custom/jao-custom-programming.el | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el index 6317165..9724a18 100644 --- a/custom/jao-custom-completion.el +++ b/custom/jao-custom-completion.el @@ -116,7 +116,7 @@ :ensure t :bind (("C-x M-:" . consult-complex-command) ("C-x b" . consult-buffer) - ("C-x C-b" . switch-to-buffer) + ("C-x C-b" . consult-buffer) ("C-x 4 b" . consult-buffer-other-window) ("C-c b" . project-find-file) ("C-c h" . nil) 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