Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for a custom key format spec in docstrings
* hydra.el (hydra-key-format-spec): New defcustom. (hydra--format): Use `hydra-key-format-spec'. Allow for 0-9 and / in key bindings. Here's an example of how to use a flexible format spec for each key: (let (hydra-key-format-spec) (defhydra hydra-zoom (global-map "<f2>") " zoom: _g_reater _ -5l_esser re_ 7c_enter zer_0_" ("g" text-scale-increase nil) ("l" text-scale-decrease nil) ("c" recenter-top-bottom nil) ("0" (text-scale-set 0) nil :exit t))) Fixes #50.
- Loading branch information