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

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

[elpa] externals/tmr 7da658eea4 2/2: Update sample glue code for Embark


From: ELPA Syncer
Subject: [elpa] externals/tmr 7da658eea4 2/2: Update sample glue code for Embark
Date: Mon, 26 Dec 2022 10:58:11 -0500 (EST)

branch: externals/tmr
commit 7da658eea412b16cc371bd5023479ac830fb44ff
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Update sample glue code for Embark
---
 README.org | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/README.org b/README.org
index 504f45b5e1..2ba0b04282 100644
--- a/README.org
+++ b/README.org
@@ -354,20 +354,15 @@ 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 '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)))))
+(with-eval-after-load 'embark
+  (add-to-list 'embark-keymap-alist '(tmr-timer . tmr-action-map)))
 #+end_src
 
 * Acknowledgements



reply via email to

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