emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/embark 2d017739a0 4/9: Remap paragraph commands to outl


From: ELPA Syncer
Subject: [elpa] externals/embark 2d017739a0 4/9: Remap paragraph commands to outline heading commands
Date: Mon, 2 May 2022 09:57:31 -0400 (EDT)

branch: externals/embark
commit 2d017739a04e59bae4f4a717ffc92ecb312ddf02
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Remap paragraph commands to outline heading commands
    
    Not sure if you like this but I prefer to use remapping here for consistency
    with paragraph jumping in other modes. I also use remapping in Vertico. The
    paragraph commands are bound to M-{ and M-} by default, but users may have 
bound
    them to other convenient keys anway. However using remapping may go against 
a
    bit of the current Embark style, where we seem to use mostly explicit 
bindings.
---
 embark.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/embark.el b/embark.el
index 4f0ba68288..5872070dec 100644
--- a/embark.el
+++ b/embark.el
@@ -2685,8 +2685,8 @@ If NESTED is non-nil subkeymaps are not flattened."
   ("b" backward-button)
   ("<right>" forward-button)
   ("<left>" backward-button)
-  ("M-n" 'outline-next-heading)
-  ("M-p" 'outline-previous-heading))
+  ([remap forward-paragraph] 'outline-next-heading)
+  ([remap backward-paragraph] 'outline-previous-heading))
 
 (define-derived-mode embark-collect-mode tabulated-list-mode "Embark Collect"
   "List of candidates to be acted on.



reply via email to

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