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

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

[elpa] externals/leaf 81ba02fb43 17/28: add lambda bind pattern to READM


From: ELPA Syncer
Subject: [elpa] externals/leaf 81ba02fb43 17/28: add lambda bind pattern to README
Date: Wed, 19 Jan 2022 18:58:42 -0500 (EST)

branch: externals/leaf
commit 81ba02fb4337cff299052a56c8f286b08f659c21
Author: Naoya Yamashita <conao3@gmail.com>
Commit: Naoya Yamashita <conao3@gmail.com>

    add lambda bind pattern to README
---
 README.org | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 6d4a49bf2c..a22f319563 100644
--- a/README.org
+++ b/README.org
@@ -840,7 +840,13 @@ If you omit ~:package~, use leaf--name as ~:package~ to 
lazy load.
        (prog1 'files
          (unless (fboundp 'find-file) (autoload #'find-file "files" nil t))
          (declare-function find-file "files")
-         (leaf-keys (([(control ?x) (control ?f)] . find-file)))))))
+         (leaf-keys (([(control ?x) (control ?f)] . find-file)))))
+
+      ;; you can bind the lambda.
+      ((leaf color-moccur
+         :bind ("M-s O" . (lambda () "color-moccur" (interactive) 
(color-moccur))))
+       (prog1 'color-moccur
+         (leaf-keys (("M-s O" . (lambda () "color-moccur" (interactive) 
(color-moccur)))))))))
 
   (cort-deftest-with-macroexpand leaf/bind*
     '(



reply via email to

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