[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tmr 184edc308c 2/3: Revert "Update sample glue code for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tmr 184edc308c 2/3: Revert "Update sample glue code for Embark" |
Date: |
Mon, 26 Dec 2022 11:58:39 -0500 (EST) |
branch: externals/tmr
commit 184edc308ccd3d05506874a14119c08ee469d62b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Revert "Update sample glue code for Embark"
This reverts commit 7da658eea412b16cc371bd5023479ac830fb44ff.
---
README.org | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/README.org b/README.org
index b3a7199530..abc59fcf2f 100644
--- a/README.org
+++ b/README.org
@@ -355,15 +355,20 @@ Everything is in place to set up the package.
:CUSTOM_ID: h:64711ce4-c023-4f6e-b9aa-b43942013423
:END:
-The ~embark~ package provides standards-compliant infrastructure to
-run context-dependent actions on all sorts of targets (symbol at
-point, current completion candidate, etc.). TMR is set up to make its
-timer objects recognisable by Embark. All the user needs is something
-like the following glue code:
+The =embark= package provides standards-compliant infrastructure to run
+context-dependent actions on all sorts of targets (symbol at point,
+current completion candidate, etc.). TMR is set up to make its timer
+objects recognisable by Embark. All the user needs is something like
+the following glue code:
#+begin_src emacs-lisp
-(with-eval-after-load 'embark
- (add-to-list 'embark-keymap-alist '(tmr-timer . tmr-action-map)))
+ (with-eval-after-load 'tmr
+ (with-eval-after-load 'embark
+ (add-to-list 'embark-keymap-alist '(tmr-timer . tmr-action-map))
+ (cl-loop
+ for cmd the key-bindings of tmr-action-map
+ if (commandp cmd) do
+ (add-to-list 'embark-post-action-hooks (list cmd 'embark--restart)))))
#+end_src
* Acknowledgements