Skip to content

Latest commit

 

History

History
69 lines (57 loc) · 1.77 KB

Changelog.org

File metadata and controls

69 lines (57 loc) · 1.77 KB

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:

(defhydra hydra-numbers (:base-map (make-sparse-keymap))
  "test"
  ("0" (message "zero"))
  ("1" (message "one")))

See #285.

Make no docstring equivalent to :hint nil

Example:

(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"))

See #291.

Declare /params and /docstring

See #185.

Sexp hints are now supported for :columns

Example

(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"))

See #311.

defhydra+

New macro. Allows to add heads to an existing hydra.

Example:

(defhydra hydra-extendable ()
  "extendable"
  ("j" next-line "down"))

(defhydra+ hydra-extendable ()
  ("k" previous-line "up"))

See #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 #317.