branch: master commit 9fd53baa74cdef027d01bb9364c14df48999a00a Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
hydra.el (hydra-doc-format-spec): New defcustom Allows to align ?*? stuff easier. --- hydra.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hydra.el b/hydra.el index f711044..573fcc0 100644 --- a/hydra.el +++ b/hydra.el @@ -211,6 +211,9 @@ the body or the head." "Default `format'-style specifier for _a_ syntax in docstrings. When nil, you can specify your own at each location like this: _ 5a_.") +(defcustom hydra-doc-format-spec "%s" + "Default `format'-style specifier for ?a? syntax in docstrings.") + (make-obsolete-variable 'hydra-key-format-spec "Since the docstrings are aligned by hand anyway, this isn't very useful." @@ -623,7 +626,7 @@ The expressions can be auto-expanded according to NAME." (setq docstring (replace-match (or - hydra-key-format-spec + hydra-doc-format-spec (concat "%" (match-string 3 docstring) "s")) t nil docstring))) (warn "Unrecognized key: ?%s?" key))))