From ccb5ce55780fea43fb1208de41279a93112a3828 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Tue, 1 Dec 2015 07:54:50 +0100 Subject: [PATCH] Add new keys in help-mode for navigation Add keys to browse back and forward in help-mode cf #2698 Add new key in help-mode Last changes for motion in help buffer --- layers/+distribution/spacemacs-base/keybindings.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layers/+distribution/spacemacs-base/keybindings.el b/layers/+distribution/spacemacs-base/keybindings.el index 85ef5a84b499..c04311bc3111 100644 --- a/layers/+distribution/spacemacs-base/keybindings.el +++ b/layers/+distribution/spacemacs-base/keybindings.el @@ -47,9 +47,14 @@ (global-set-key (kbd " ") 'spacemacs/select-current-block) (global-set-key (kbd " ") 'spacemacs/mu-select-linum) -;; let TAB jump between links in help buffers +;; motions keys for help buffers (evil-define-key 'motion help-mode-map (kbd "") 'forward-button) (evil-define-key 'motion help-mode-map (kbd "S-") 'backward-button) +(evil-define-key 'motion help-mode-map (kbd "]") 'help-go-forward) +(evil-define-key 'motion help-mode-map (kbd "gf") 'help-go-forward) +(evil-define-key 'motion help-mode-map (kbd "[") 'help-go-back) +(evil-define-key 'motion help-mode-map (kbd "gb") 'help-go-back) +(evil-define-key 'motion help-mode-map (kbd "mmh") 'help-follow-symbol) ;; --------------------------------------------------------------------------- ;; evil-leader key bindings