Skip to content

Commit

Permalink
hydra.el: Bump version
Browse files Browse the repository at this point in the history
* doc/Changelog.org: Add.
  • Loading branch information
abo-abo committed May 16, 2019
1 parent acb6985 commit f27fce1
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
69 changes: 69 additions & 0 deletions doc/Changelog.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
* 0.15.0
** New Features

*** defhydra

**** New :base-map option in body plist
In case your hydra conficts with el:hydra-base-map, you can now override it.

Example:
#+begin_src elisp
(defhydra hydra-numbers (:base-map (make-sparse-keymap))
"test"
("0" (message "zero"))
("1" (message "one")))
#+end_src
See [[https://github.com/abo-abo/hydra/issues/285][#285]].

**** Make no docstring equivalent to :hint nil
Example:
#+begin_src elisp
(defhydra hydra-clock (:color blue)
("q" nil "quit" :column "Clock")
("c" org-clock-cancel "cancel" :color pink :column "Do")
("d" org-clock-display "display")
("e" org-clock-modify-effort-estimate "effort")
("i" org-clock-in "in")
("j" org-clock-goto "jump")
("o" org-clock-out "out")
("r" org-clock-report "report"))
#+end_src
See [[https://github.com/abo-abo/hydra/issues/291][#291]].

**** Declare /params and /docstring
See [[https://github.com/abo-abo/hydra/issues/185][#185]].

**** Sexp hints are now supported for :columns
Example
#+begin_src elisp
(defhydra hydra-test ()
"Test"
("j" next-line (format-time-string "%H:%M:%S" (current-time)) :column "One")
("k" previous-line (format-time-string "%H:%M:%S" (current-time)))
("l" backward-char "back" :column "Two"))
#+end_src
See [[https://github.com/abo-abo/hydra/issues/311][#311]].


*** defhydra+
New macro. Allows to add heads to an existing hydra.

Example:
#+begin_src elisp
(defhydra hydra-extendable ()
"extendable"
("j" next-line "down"))

(defhydra+ hydra-extendable ()
("k" previous-line "up"))
#+end_src
See [[https://github.com/abo-abo/hydra/issues/185][#185]].

*** el:hydra-hint-display-type
Customize what to use to display the hint:
- el:message
- el:lv-message
- posframe

el:hydra-lv is now obsolete.
See [[https://github.com/abo-abo/hydra/issues/317][#317]].
2 changes: 1 addition & 1 deletion hydra.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Oleh Krehel <[email protected]>
;; Maintainer: Oleh Krehel <[email protected]>
;; URL: https://github.com/abo-abo/hydra
;; Version: 0.14.0
;; Version: 0.15.0
;; Keywords: bindings
;; Package-Requires: ((cl-lib "0.5") (lv "0"))

Expand Down

0 comments on commit f27fce1

Please sign in to comment.