aboutsummaryrefslogtreecommitdiff
path: root/modules/help-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-23 00:10:12 -0500
committerCraig Jennings <c@cjennings.net>2025-10-23 00:10:12 -0500
commitb9b511ceadba9936f9d513664a8d19aa3b8a543c (patch)
tree987a2aa6bffaeda540520c96912caab73062c57e /modules/help-config.el
parentebe571970495d62b6ef7e597089313f8744533e8 (diff)
downloaddotemacs-b9b511ceadba9936f9d513664a8d19aa3b8a543c.tar.gz
dotemacs-b9b511ceadba9936f9d513664a8d19aa3b8a543c.zip
refactor:help-config: update keybinding functions
Replace `global-set-key` with `keymap-global-set` for consistency and readability. Remove deferring in `helpful` and `man` use-package configurations as it's unnecessary.
Diffstat (limited to 'modules/help-config.el')
-rw-r--r--modules/help-config.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/help-config.el b/modules/help-config.el
index 6ef9b4345..cfe67bf0d 100644
--- a/modules/help-config.el
+++ b/modules/help-config.el
@@ -19,13 +19,11 @@
(setq help-window-select t) ;; Always select the help buffer in a separate window
-(global-set-key (kbd "C-h P") 'list-packages) ;; bring up the package menu
+(keymap-global-set "C-h P" #'list-packages) ;; bring up the package menu
;; ---------------------------------- Helpful ----------------------------------
(use-package helpful
- :if (version< emacs-version "30")
- :defer .5
:bind
("C-h f" . helpful-callable)
("C-h v" . helpful-variable)
@@ -38,7 +36,6 @@
;; ------------------------------------ Man ------------------------------------
(use-package man
- :defer 1
:ensure nil ;; built-in
:bind ("C-h M" . man))
@@ -81,7 +78,7 @@ Preserves any unsaved changes and checks if the file exists."
(info chosen-file))))
(global-unset-key (kbd "C-h i"))
-(global-set-key (kbd "C-h i") #'cj/browse-info-files)
+(keymap-global-set "C-h i" #'cj/browse-info-files)
(use-package info