branch: master commit 88b32d50dcc72e717fbc2868399626a96d967344 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
hydra.el (hydra--hint): Add exception * hydra.el (hydra--hint): Don't add semicolon to docstrings that start with a newline. --- hydra.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hydra.el b/hydra.el index a944723..342aee5 100644 --- a/hydra.el +++ b/hydra.el @@ -302,7 +302,9 @@ NAME, BODY, DOCSTRING and HEADS are parameters to `defhydra'." (and (stringp (cl-caddr h)) (cl-caddr h)))) alist))))) - (format "%s: %s." + (format (if (eq ?\n (aref docstring 0)) + "%s%s" + "%s: %s.") docstring (mapconcat (lambda (x)