diff --git a/init.el b/init.el index 9e1329e..2af8723 100644 --- a/init.el +++ b/init.el @@ -58,12 +58,6 @@ If freezing sometimes, decrease it. If stuttering, increase it.") (expand-file-name ".cache" creature/config-dir) "Cache directory of Creature.") -(defconst creature/prefix-key "M-m" - "Prefix key for custom keybindings.") - -(define-prefix-command 'creature/map) -(global-set-key (kbd creature/prefix-key) 'creature/map) - (defconst creature/pkg-dir (expand-file-name "site-lisp" creature/config-dir) "Package directory.") diff --git a/lisp/init-flymake.el b/lisp/init-flymake.el index 19663c2..98dc6f8 100644 --- a/lisp/init-flymake.el +++ b/lisp/init-flymake.el @@ -34,6 +34,7 @@ ("C-c C-p" . flymake-goto-prev-error)) flymake-mode-map) + (require 'init-keybindings) (lazy-load-set-keys '(("ex" . flymake-show-diagnostic) ("el" . creature/flymake-show-diagnostics-buffer-and-jump)) diff --git a/lisp/init-git.el b/lisp/init-git.el index 59d87e5..303e9dc 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -6,6 +6,7 @@ '(("C-x g" . magit-status)) "magit") +(require 'init-keybindings) (lazy-load-local-keys '(("gb" . magit-blame) ("gc" . magit-clone) diff --git a/lisp/init-keybindings.el b/lisp/init-keybindings.el index dec06f6..ce5778d 100644 --- a/lisp/init-keybindings.el +++ b/lisp/init-keybindings.el @@ -1,5 +1,12 @@ ;; -*- coding: utf-8; lexical-binding: t; -*- +(defconst creature/prefix-key "M-m" + "Prefix key for custom keybindings.") + +(define-prefix-command 'creature/map) +(global-set-key (kbd creature/prefix-key) 'creature/map) + + (global-set-key (kbd "C-c '") (kbd "`")) diff --git a/lisp/init-sdcv.el b/lisp/init-sdcv.el index 24d547a..1240708 100644 --- a/lisp/init-sdcv.el +++ b/lisp/init-sdcv.el @@ -3,6 +3,7 @@ (require 'lazy-load) +(require 'init-keybindings) (lazy-load-local-keys '(("s" . sdcv-search-pointer)) creature/map "sdcv") diff --git a/lisp/init-vertico.el b/lisp/init-vertico.el index 5f8b25c..c380d29 100644 --- a/lisp/init-vertico.el +++ b/lisp/init-vertico.el @@ -34,6 +34,7 @@ "cape") +(require 'init-keybindings) (lazy-load-local-keys '(("fr" . consult-recent-file)) creature/map "consult") diff --git a/lisp/init-which-key.el b/lisp/init-which-key.el index e248b47..016a640 100644 --- a/lisp/init-which-key.el +++ b/lisp/init-which-key.el @@ -1,5 +1,7 @@ ;; -*- coding: utf-8; lexical-binding: t; -*- +(require 'init-keybindings) + (require 'which-key) (setq which-key-show-early-on-C-h t) (setq which-key-idle-delay 10000)