emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 9fd53ba 08/36: hydra.el (hydra-doc-format-spec): New defcu


From: Oleh Krehel
Subject: [elpa] master 9fd53ba 08/36: hydra.el (hydra-doc-format-spec): New defcustom
Date: Sat, 22 Jul 2017 11:22:21 -0400 (EDT)

branch: master
commit 9fd53baa74cdef027d01bb9364c14df48999a00a
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]