summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2026-02-09 13:18:45 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2026-02-09 13:18:45 +0100
commit4df49b1a68a1c5a17f9da209723622e7d12ad283 (patch)
treea5b8f65c88bd862b48e5712b0f5434d669bb5786
parent55c70a76813d90211cce692c377dccb64fdc1d8f (diff)
emacs: Move binding definition
-rw-r--r--.config/emacs/modules/mm-humanwave.el2
-rw-r--r--.config/emacs/modules/mm-keybindings.el8
2 files changed, 8 insertions, 2 deletions
diff --git a/.config/emacs/modules/mm-humanwave.el b/.config/emacs/modules/mm-humanwave.el
index 3aa97b3..719e4d6 100644
--- a/.config/emacs/modules/mm-humanwave.el
+++ b/.config/emacs/modules/mm-humanwave.el
@@ -32,8 +32,6 @@ If METHOD is nil, a GET request is performed."
(goto-char (point-min)))
(display-buffer output-buffer))))
-(keymap-set project-prefix-map "q" #'mm-humanwave-query)
-
;;; IMenu Support for Handlers
diff --git a/.config/emacs/modules/mm-keybindings.el b/.config/emacs/modules/mm-keybindings.el
index 3aa548e..f7038ea 100644
--- a/.config/emacs/modules/mm-keybindings.el
+++ b/.config/emacs/modules/mm-keybindings.el
@@ -146,6 +146,14 @@ the first command is remapped to the second command."
"i" #'increment-number-at-point))
+;;; Other Bindings
+
+(when mm-humanwave-p
+ (with-eval-after-load 'project
+ (mm-keymap-set project-prefix-map
+ "q" #'mm-humanwave-query)))
+
+
;;; Display Available Keybindings
(use-package which-key