From a6e73fae8d41b109c6a5d615de72b9712a61e554 Mon Sep 17 00:00:00 2001 From: Random936 Date: Fri, 11 Aug 2023 19:30:00 -0700 Subject: [PATCH] Added helpful to emacs config --- emacs/config.org | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/emacs/config.org b/emacs/config.org index facc80f..aeac05f 100644 --- a/emacs/config.org +++ b/emacs/config.org @@ -162,6 +162,29 @@ Command Log Mode creates a window that logs all commands and corrosponding keybi (use-package magit) #+end_src +*** Helpful + +*Helpful* is a package that improves the builtin emacs help menus. + +#+begin_src emacs-lisp + (use-package helpful + :config ; Set keybindings to call helpful instead of the default emacs help. + (global-set-key (kbd "C-h f") #'helpful-callable) + (global-set-key (kbd "C-h v") #'helpful-variable) + (global-set-key (kbd "C-h k") #'helpful-key) + (global-set-key (kbd "C-h x") #'helpful-command) + + ;; Lookup the current symbol at point. C-c C-d is a common keybinding for this in lisp modes. + (global-set-key (kbd "C-c C-d") #'helpful-at-point) + + ;; Look up *F*unctions (excludes macros). + (global-set-key (kbd "C-h F") #'helpful-function) + + ;; Syncing with ivy and counsel + (setq counsel-describe-function-function #'helpful-callable) + (setq counsel-describe-variable-function #'helpful-variable)) +#+end_src + * Cosmetic Packages that change the look of emacs in some way.