[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark 20bb785 09/11: Declare org outline commands as r
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark 20bb785 09/11: Declare org outline commands as repeatable |
Date: |
Thu, 9 Dec 2021 17:57:26 -0500 (EST) |
branch: externals/embark
commit 20bb785a54679f2ac21cd240302c1555a4f5afc6
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Declare org outline commands as repeatable
outline commands are remapped to org commands, so we must declare both
outline
and org commands as repeatable.
---
embark.el | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/embark.el b/embark.el
index 7a80e7c..11b2083 100644
--- a/embark.el
+++ b/embark.el
@@ -499,16 +499,25 @@ arguments and more details."
"0.12")
(defcustom embark-repeat-actions
- '(embark-next-symbol embark-previous-symbol backward-up-list
- backward-list forward-list forward-sexp backward-sexp
- mark outline-mark-subtree
+ '(mark
+ ;; outline commands
outline-next-visible-heading outline-previous-visible-heading
- outline-up-heading outline-forward-same-level outline-backward-same-level
- outline-show-subtree outline-hide-subtree outline-cycle
- outline-move-subtree-up outline-move-subtree-down
+ outline-forward-same-level outline-backward-same-level
+ outline-demote outline-promote outline-mark-subtree
+ outline-show-subtree outline-move-subtree-up outline-move-subtree-down
+ outline-up-heading outline-hide-subtree outline-cycle
+ ;; org commands (remapped outline commands)
+ org-forward-heading-same-level org-backward-heading-same-level
+ org-next-visible-heading org-previous-visible-heading
+ org-demote-subtree org-promote-subtree org-mark-subtree
+ org-show-subtree org-move-subtree-up org-move-subtree-down
+ ;; transpose commands
transpose-sexps transpose-sentences transpose-paragraphs
- forward-sentence backward-sentence forward-paragraph
- backward-paragraph)
+ ;; movement
+ embark-next-symbol embark-previous-symbol
+ backward-up-list backward-list forward-list forward-sexp
+ backward-sexp forward-sentence backward-sentence
+ forward-paragraph backward-paragraph)
"List of repeatable actions."
:type '(repeat function))
@@ -1907,7 +1916,9 @@ target."
(let ((desired-type
;; TODO Introduce customizable variable,
;; instead of hard-coding the mark
commands.
- (if (memq action '(mark
outline-mark-subtree))
+ (if (memq action '(mark
+ outline-mark-subtree
+ org-mark-subtree))
'region
(plist-get (car targets) :type))))
(lambda (x)
- [elpa] externals/embark 203f4f2 01/11: Add heading target and keymap based on outline mode, (continued)
- [elpa] externals/embark 203f4f2 01/11: Add heading target and keymap based on outline mode, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 50606ee 04/11: Add elp-instrument-* commands, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 0645194 06/11: Make outline-mark-subtree repeatable, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 1265d85 02/11: Ensure that outline-regexp is available (same trick in consult), ELPA Syncer, 2021/12/09
- [elpa] externals/embark f3738f8 03/11: Fix warnings, remove unnecessary declare-function, ELPA Syncer, 2021/12/09
- [elpa] externals/embark f2111e6 05/11: Make outline-move-subtree-up/down repeatable, ELPA Syncer, 2021/12/09
- [elpa] externals/embark a9f63bc 10/11: Merge pull request #416 from minad/outline, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 7c502b0 11/11: Merge pull request #417 from minad/profile, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 7c62ba6 08/11: Hard code outline-mark-subtree for now, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 3b51f48 07/11: Add embark-elp-restore-package, change binding, ELPA Syncer, 2021/12/09
- [elpa] externals/embark 20bb785 09/11: Declare org outline commands as repeatable,
ELPA Syncer <=