summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/mm-completion.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-19 17:04:33 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-19 17:04:33 +0200
commit1aa59f16f6a0a895d463ea6066ffba92b510be2d (patch)
treeb89676bea3324f932367911cd48e41bcdf19d471 /.config/emacs/modules/mm-completion.el
parent473e1b52323bcd14332b4ce16c88e41b91c55d51 (diff)
emacs: Make use of ‘after-init’
Diffstat (limited to '.config/emacs/modules/mm-completion.el')
-rw-r--r--.config/emacs/modules/mm-completion.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/.config/emacs/modules/mm-completion.el b/.config/emacs/modules/mm-completion.el
index 9ea7746..bc7b297 100644
--- a/.config/emacs/modules/mm-completion.el
+++ b/.config/emacs/modules/mm-completion.el
@@ -5,23 +5,21 @@
(use-package vertico
:ensure t
+ :hook after-init
:custom
(vertico-cycle t)
- :init
- (vertico-mode)
:config
- ;; Highlight the current line
(require 'hl-line))
;;; Annotate Completions
+;; TODO: Show git branch descriptions!
(use-package marginalia
:ensure t
+ :hook after-init
:custom
- (marginalia-field-width 50)
- :init
- (marginalia-mode))
+ (marginalia-field-width 50))
;;; Orderless Completion Style
@@ -52,7 +50,6 @@
;;; Save Minibuffer History
(use-package savehist-mode
- :init
- (savehist-mode))
+ :hook (after-init . savehist-mode))
(provide 'mm-completion)