summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-19 17:05:44 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-19 17:05:44 +0200
commit2e6faefc6e11b652aa68f71aa989f1ad5257db34 (patch)
treeac22f2a49691c97da0c1ff0ff7c914499445b10d
parentd39747b5b23025025bb59ecfb06600308c3bc2bf (diff)
emacs: Move which-key config to mm-keybindings.el
-rw-r--r--.config/emacs/modules/mm-documentation.el13
-rw-r--r--.config/emacs/modules/mm-keybindings.el10
2 files changed, 10 insertions, 13 deletions
diff --git a/.config/emacs/modules/mm-documentation.el b/.config/emacs/modules/mm-documentation.el
index 473c766..50505e1 100644
--- a/.config/emacs/modules/mm-documentation.el
+++ b/.config/emacs/modules/mm-documentation.el
@@ -1,18 +1,5 @@
;;; mm-documentation.el --- Configuration related to documentation -*- lexical-binding: t; -*-
-
-;;; Display Available Keybindings
-
-(use-package which-key
- :demand t
- :config
- (which-key-mode)
- :custom
- (which-key-dont-use-unicode nil)
- (which-key-ellipsis "…")
- (wihch-key-idle-delay .5))
-
-
;;; Enhance Describe Commands
(use-package helpful
diff --git a/.config/emacs/modules/mm-keybindings.el b/.config/emacs/modules/mm-keybindings.el
index 56a7f63..e3df839 100644
--- a/.config/emacs/modules/mm-keybindings.el
+++ b/.config/emacs/modules/mm-keybindings.el
@@ -109,4 +109,14 @@ the first command is remapped to the second command."
"d" #'decrement-number-at-point
"i" #'increment-number-at-point))
+
+;;; Display Available Keybindings
+
+(use-package which-key
+ :hook after-init
+ :custom
+ (which-key-dont-use-unicode nil)
+ (which-key-ellipsis "…")
+ (wihch-key-idle-delay .5))
+
(provide 'mm-keybindings)