1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Bind "N"/"P" to next/prev section in shortdoc

* lisp/emacs-lisp/shortdoc.el (shortdoc-mode-map): Bind "N" and
"P" to 'shortdoc-next-section' and 'shortdoc-previous-section'.
This commit is contained in:
Stefan Kangas 2022-09-25 13:22:17 +02:00
parent d25a26ab40
commit 3af2f9cce3
2 changed files with 8 additions and 0 deletions

View file

@ -1712,6 +1712,12 @@ This fills the region to be no wider than a specified pixel width.
This will take you to the gnu.org web server's version of the current
info node. This command only works for the Emacs and Emacs Lisp manuals.
** Shortdoc
---
*** 'N' and 'P' are now bound to 'shortdoc-(next|previous)-section'.
This is in addition to the old keybindings 'C-c C-n' and 'C-c C-p'.
** VC
---

View file

@ -1512,6 +1512,8 @@ Example:
:doc "Keymap for `shortdoc-mode'."
"n" #'shortdoc-next
"p" #'shortdoc-previous
"N" #'shortdoc-next-section
"P" #'shortdoc-previous-section
"C-c C-n" #'shortdoc-next-section
"C-c C-p" #'shortdoc-previous-section)