From 1e2cd1327833033e3e2c490d9f664ed1eb7c2056 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 19 Oct 2024 17:05:10 +0200 Subject: emacs: Remove TAB in Corfu and support savehist --- .config/emacs/modules/mm-completion.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to '.config/emacs/modules/mm-completion.el') diff --git a/.config/emacs/modules/mm-completion.el b/.config/emacs/modules/mm-completion.el index bc7b297..0de3170 100644 --- a/.config/emacs/modules/mm-completion.el +++ b/.config/emacs/modules/mm-completion.el @@ -37,14 +37,20 @@ (use-package corfu :ensure t - :hook ((prog-mode . corfu-mode)) - :bind (:map corfu-map - ("C-" . newline)) + :hook prog-mode + :bind ( :map corfu-map + ("C-" . newline)) :custom (corfu-auto t) (corfu-cycle t) (corfu-auto-prefix 1) - (corfu-auto-delay 0)) + (corfu-auto-delay 0) + :config + ;; I complete with RET and this interferes with ‘tempel-next’ + (keymap-unset corfu-map "TAB" :remove) + (with-eval-after-load 'savehist + (corfu-history-mode) + (add-to-list 'savehist-additional-variables 'corfu-history))) ;;; Save Minibuffer History -- cgit v1.2.3