[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)
- master updated (d25a26ab40 -> 489bca19b7), Stefan Kangas, 2022/09/25
- master 46ec36adfd 2/6: * etc/NEWS.22: Belatedly announce 'dired-copy-filename-as-kill'., Stefan Kangas, 2022/09/25
- master 489bca19b7 6/6: Improve shortdoc documentation, Stefan Kangas, 2022/09/25
- master e589690781 3/6: Add new command 'shortdoc-copy-function-as-kill', Stefan Kangas, 2022/09/25
- master 971566e88a 4/6: Fix shortdoc movement commands, Stefan Kangas, 2022/09/25
- master 3af2f9cce3 1/6: Bind "N"/"P" to next/prev section in shortdoc,
Stefan Kangas <=
- master a256f49f08 5/6: Make image-dired-thumb-name more portable, Stefan Kangas, 2022/09/25