]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind "N"/"P" to next/prev section in shortdoc
authorStefan Kangas <stefankangas@gmail.com>
Sun, 25 Sep 2022 11:22:17 +0000 (13:22 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 25 Sep 2022 11:38:22 +0000 (13:38 +0200)
* lisp/emacs-lisp/shortdoc.el (shortdoc-mode-map): Bind "N" and
"P" to 'shortdoc-next-section' and 'shortdoc-previous-section'.

etc/NEWS
lisp/emacs-lisp/shortdoc.el

index 835fcf8bcaf6e5c64b4996fce7ee81a09d07807b..139e65a4f19d9432a98819be86faf077f952530f 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
 
 ---
index d07d1019b4d48c3837013d80b0555ca330349ece..13d99adcf089db65307622089070d0df376c69de 100644 (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)