diff options
-rw-r--r-- | .config/emacs/modules/mm-completion.el | 14 |
1 files changed, 10 insertions, 4 deletions
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-<return>" . newline)) + :hook prog-mode + :bind ( :map corfu-map + ("C-<return>" . 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 |