[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 37b6177 3/7: README.md: update for 0.7.0
From: |
Oleh Krehel |
Subject: |
[elpa] master 37b6177 3/7: README.md: update for 0.7.0 |
Date: |
Sun, 08 Feb 2015 15:06:32 +0000 |
branch: master
commit 37b6177dcdcdc8b849d8119b09e6ec1c463351c1
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
README.md: update for 0.7.0
---
README.md | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
index 0686965..c2f7631 100644
--- a/README.md
+++ b/README.md
@@ -171,3 +171,27 @@ Since version `0.6.0`, for any Hydra:
- `digit-argment` can be called with <kbd>0</kbd>-<kbd>9</kbd>.
- `negative-argument` can be called with <kbd>-</kbd>
- `universal-argument` can be called with <kbd>C-u</kbd>
+
+## Hydras can have `:pre` and `:post` statements
+
+Since version `0.7.0`, you can specify code that will be called before each
head, and
+after the body. For example:
+
+```cl
+(global-set-key
+ (kbd "C-z")
+ (defhydra hydra-vi
+ (:pre
+ (set-cursor-color "#40e0d0")
+ :post
+ (progn
+ (set-cursor-color "#ffffff")
+ (message
+ "Thank you, come again.")))
+ "vi"
+ ("l" forward-char)
+ ("h" backward-char)
+ ("j" next-line)
+ ("k" previous-line)
+ ("q" nil "quit")))
+```
- [elpa] master updated (8b585bc -> 2fb700c), Oleh Krehel, 2015/02/08
- [elpa] master 37b6177 3/7: README.md: update for 0.7.0,
Oleh Krehel <=
- [elpa] master e8bbb70 2/7: Add :pre and :post clauses to Hydra body, Oleh Krehel, 2015/02/08
- [elpa] master 843bc70 4/7: Add amaranth (immortal) Hydras, Oleh Krehel, 2015/02/08
- [elpa] master e21d1d8 1/7: Update the call order and allow called functions to exit, Oleh Krehel, 2015/02/08
- [elpa] master 68bcaa8 6/7: Bump version, Oleh Krehel, 2015/02/08
- [elpa] master 07e4aaa 5/7: hydra-test.el: add test, Oleh Krehel, 2015/02/08
- [elpa] master 2fb700c 7/7: Merge commit '68bcaa8d8df5518217a3833fd1bb400c8225fe02' from hydra, Oleh Krehel, 2015/02/08