From a60501e8557e0d0f833790e916f86ec0d17da4f2 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 23 Oct 2025 00:10:12 -0500 Subject: 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. --- modules/help-config.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/help-config.el b/modules/help-config.el index 6ef9b434..cfe67bf0 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 -- cgit v1.2.3