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

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

[elpa] master 0c08964 16/17: README.md: update


From: Oleh Krehel
Subject: [elpa] master 0c08964 16/17: README.md: update
Date: Tue, 10 Feb 2015 07:13:29 +0000

branch: master
commit 0c08964462812942db51d177e6ea922b26019e65
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    README.md: update
---
 README.md |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md
index 831dbb6..c7c1dff 100644
--- a/README.md
+++ b/README.md
@@ -250,3 +250,19 @@ pressing the wrong prefix.
 Note that it does not make sense to define a single amaranth head, so this 
color can only
 be assigned to the body. An amaranth body will always have some amaranth heads 
and some
 blue heads (otherwise, it's impossible to exit), no reds.
+
+## Generate simple lambdas in-place:
+
+Since version `0.9.0` it's possible to pass a single sexp instead of a 
function name or a lambda
+to a head. This sexp will be wrapped in an interactive lambda. Here's an 
example:
+
+```cl
+(defhydra hydra-launcher (:color blue)
+   "Launch"
+   ("h" man "man")
+   ("r" (browse-url "http://www.reddit.com/r/emacs/";) "reddit")
+   ("w" (browse-url "http://www.emacswiki.org/";) "emacswiki")
+   ("s" shell "shell")
+   ("q" nil "cancel"))
+(global-set-key (kbd "C-c r") 'hydra-launcher/body)
+```



reply via email to

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