|
| 1 | +* 0.15.0 |
| 2 | +** New Features |
| 3 | + |
| 4 | +*** defhydra |
| 5 | + |
| 6 | +**** New :base-map option in body plist |
| 7 | +In case your hydra conficts with el:hydra-base-map, you can now override it. |
| 8 | + |
| 9 | +Example: |
| 10 | +#+begin_src elisp |
| 11 | +(defhydra hydra-numbers (:base-map (make-sparse-keymap)) |
| 12 | + "test" |
| 13 | + ("0" (message "zero")) |
| 14 | + ("1" (message "one"))) |
| 15 | +#+end_src |
| 16 | +See [[https://github.com/abo-abo/hydra/issues/285][#285]]. |
| 17 | + |
| 18 | +**** Make no docstring equivalent to :hint nil |
| 19 | +Example: |
| 20 | +#+begin_src elisp |
| 21 | +(defhydra hydra-clock (:color blue) |
| 22 | + ("q" nil "quit" :column "Clock") |
| 23 | + ("c" org-clock-cancel "cancel" :color pink :column "Do") |
| 24 | + ("d" org-clock-display "display") |
| 25 | + ("e" org-clock-modify-effort-estimate "effort") |
| 26 | + ("i" org-clock-in "in") |
| 27 | + ("j" org-clock-goto "jump") |
| 28 | + ("o" org-clock-out "out") |
| 29 | + ("r" org-clock-report "report")) |
| 30 | +#+end_src |
| 31 | +See [[https://github.com/abo-abo/hydra/issues/291][#291]]. |
| 32 | + |
| 33 | +**** Declare /params and /docstring |
| 34 | +See [[https://github.com/abo-abo/hydra/issues/185][#185]]. |
| 35 | + |
| 36 | +**** Sexp hints are now supported for :columns |
| 37 | +Example |
| 38 | +#+begin_src elisp |
| 39 | +(defhydra hydra-test () |
| 40 | + "Test" |
| 41 | + ("j" next-line (format-time-string "%H:%M:%S" (current-time)) :column "One") |
| 42 | + ("k" previous-line (format-time-string "%H:%M:%S" (current-time))) |
| 43 | + ("l" backward-char "back" :column "Two")) |
| 44 | +#+end_src |
| 45 | +See [[https://github.com/abo-abo/hydra/issues/311][#311]]. |
| 46 | + |
| 47 | + |
| 48 | +*** defhydra+ |
| 49 | +New macro. Allows to add heads to an existing hydra. |
| 50 | + |
| 51 | +Example: |
| 52 | +#+begin_src elisp |
| 53 | +(defhydra hydra-extendable () |
| 54 | + "extendable" |
| 55 | + ("j" next-line "down")) |
| 56 | + |
| 57 | +(defhydra+ hydra-extendable () |
| 58 | + ("k" previous-line "up")) |
| 59 | +#+end_src |
| 60 | +See [[https://github.com/abo-abo/hydra/issues/185][#185]]. |
| 61 | + |
| 62 | +*** el:hydra-hint-display-type |
| 63 | +Customize what to use to display the hint: |
| 64 | +- el:message |
| 65 | +- el:lv-message |
| 66 | +- posframe |
| 67 | + |
| 68 | +el:hydra-lv is now obsolete. |
| 69 | +See [[https://github.com/abo-abo/hydra/issues/317][#317]]. |
0 commit comments