diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-23 00:10:12 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-23 00:10:12 -0500 |
| commit | a60501e8557e0d0f833790e916f86ec0d17da4f2 (patch) | |
| tree | a0c893b655b81bc4eab6f1fa1c28ed36e12c6ac2 /modules | |
| parent | 920014dc312b290daa21f4d86564dab22e28a5ae (diff) | |
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')
| -rw-r--r-- | modules/help-config.el | 7 |
1 files 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 |
