From 3af2f9cce312a2e9fff1bfc5f7689c5b9db369bd Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 25 Sep 2022 13:22:17 +0200 Subject: [PATCH] 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 835fcf8bcaf..139e65a4f19 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 d07d1019b4d..13d99adcf08 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) -- 2.39.2