Skip to content

Commit

Permalink
Add new keys in help-mode for navigation
Browse files Browse the repository at this point in the history
Add keys to browse back and forward in help-mode

cf syl20bnr#2698

Add new key in help-mode

Last changes for motion in help buffer
  • Loading branch information
AdrieanKhisbe committed Dec 1, 2015
1 parent c85dcb6 commit 6eece52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layers/+distribution/spacemacs-base/keybindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@
(global-set-key (kbd "<left-margin> <double-mouse-1>") 'spacemacs/select-current-block)
(global-set-key (kbd "<left-margin> <drag-mouse-1>") '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 "<tab>") 'forward-button)
(evil-define-key 'motion help-mode-map (kbd "S-<tab>") 'backward-button)
(evil-define-key 'motion help-mode-map (kbd "]") 'help-go-forward)
(evil-define-key 'motion help-mode-map (kbd "[") 'help-go-back)
(evil-define-key 'motion help-mode-map (kbd "s") 'help-follow-symbol)
(evil-define-key 'motion help-mode-map (kbd "u") 'scroll-up)
(evil-define-key 'motion help-mode-map (kbd "d") 'scroll-down)

;; ---------------------------------------------------------------------------
;; evil-leader key bindings
Expand Down

0 comments on commit 6eece52

Please sign in to comment.