From: Stefan Kangas Date: Sun, 25 Sep 2022 11:22:17 +0000 (+0200) Subject: Bind "N"/"P" to next/prev section in shortdoc X-Git-Tag: emacs-29.0.90~1856^2~237 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3af2f9cce312a2e9fff1bfc5f7689c5b9db369bd;p=emacs.git 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'. --- 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)