aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-07-08 21:54:55 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-07-08 21:54:55 +0100
commit5f3fb4752de3868e688ff2046790bda569bb6e23 (patch)
tree57deb9cc695bd0b6c0ee11e7e9c839416ea7614e
parentffe44784e833d3376dd460bb73073bd9bc68031d (diff)
Add n and p as movement keybindings0.12
We might want to use TAB in future for other things, perhaps expanding/collapsing headings.
-rw-r--r--CHANGELOG.md3
-rw-r--r--helpful.el3
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 839c4cb..d8d8afd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,9 @@ Fixed a crash on keymaps where keys are bound to anonymous functions.
Improved performance (PR by @nickdrozd).
+It's now possible to move between buttons in the Helpful buffer with
+`n` and `p`.
+
# v0.11
Further work on syntax highlighting performance for large code
diff --git a/helpful.el b/helpful.el
index 644ef72..367fe8d 100644
--- a/helpful.el
+++ b/helpful.el
@@ -2193,5 +2193,8 @@ See also `helpful-max-buffers'."
(define-key helpful-mode-map (kbd "TAB") #'forward-button)
(define-key helpful-mode-map (kbd "<backtab>") #'backward-button)
+(define-key helpful-mode-map (kbd "n") #'forward-button)
+(define-key helpful-mode-map (kbd "p") #'backward-button)
+
(provide 'helpful)
;;; helpful.el ends here