summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-completion.el2
-rw-r--r--custom/jao-custom-programming.el2
2 files changed, 3 insertions, 1 deletions
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)