summaryrefslogtreecommitdiff
path: root/.config/emacs/modules
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-19 17:05:10 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-19 17:05:10 +0200
commit1e2cd1327833033e3e2c490d9f664ed1eb7c2056 (patch)
treeae80361d9f4d5b54d8670ba83eff9a701036a616 /.config/emacs/modules
parent424863853871e80fad1b639d8e5d14832172f175 (diff)
emacs: Remove TAB in Corfu and support savehist
Diffstat (limited to '.config/emacs/modules')
-rw-r--r--.config/emacs/modules/mm-completion.el14
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