emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3af2f9cce3 1/6: Bind "N"/"P" to next/prev section in shortdoc


From: Stefan Kangas
Subject: master 3af2f9cce3 1/6: Bind "N"/"P" to next/prev section in shortdoc
Date: Sun, 25 Sep 2022 08:46:25 -0400 (EDT)

branch: master
commit 3af2f9cce312a2e9fff1bfc5f7689c5b9db369bd
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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'.
---
 etc/NEWS                    | 6 ++++++
 lisp/emacs-lisp/shortdoc.el | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index 835fcf8bca..139e65a4f1 100644
--- 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
 
 ---
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index d07d1019b4..13d99adcf0 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]