From 990b6278a8a9e456fb86efa47a4a59e903dd95b9 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 3 Oct 2020 14:50:38 +0100 Subject: [PATCH] Define KBDs for Info-mode I took the Info-mode tutorial (finally) and I found some things from evil-collection that I liked, other things that I didn't like. --- emacs/.emacs.d/wpc/keybindings.el | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/wpc/keybindings.el b/emacs/.emacs.d/wpc/keybindings.el index 8809f185b..6886ecf98 100644 --- a/emacs/.emacs.d/wpc/keybindings.el +++ b/emacs/.emacs.d/wpc/keybindings.el @@ -177,6 +177,7 @@ "hk" #'helpful-key "hv" #'helpful-variable "hp" #'helpful-at-point + "hi" #'info-apropos "s" #'flyspell-mode "S" #'sort-lines "=" #'align @@ -297,10 +298,24 @@ "l" #'evil-forward-char "L" #'magit-log) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Info-mode +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; NOTE: I find some of the following, existing KBDs useful: +;; M-x info-apropos +;; u Info-up +;; M-n clone-buffer (general-define-key :states '(normal) :keymaps '(Info-mode-map) - "RET" #'Info-follow-nearest-node) + "SPC" nil + "RET" #'Info-follow-nearest-node + "" #'Info-next + "" #'Info-prev + "g l" #'Info-history-back + "g t" #'Info-toc) + (provide 'keybindings) ;;; keybindings.el ends here