[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))))
- [elpa] master updated (231ac7f -> 32b8352), Oleh Krehel, 2017/07/22
- [elpa] master 69529ad 01/36: hydra.el (hydra-default-hint): Add option, Oleh Krehel, 2017/07/22
- [elpa] master f01f4a4 04/36: hydra.el (hydra-key-regex): Extract from hydra--format, Oleh Krehel, 2017/07/22
- [elpa] master 83b9019 07/36: hydra.el (hydra-width-spec-regex): Update, Oleh Krehel, 2017/07/22
- [elpa] master 9fd53ba 08/36: hydra.el (hydra-doc-format-spec): New defcustom,
Oleh Krehel <=
- [elpa] master f668f4c 06/36: hydra.el (hydra-key-regex): Add "↓←→⌫⌦⏎", Oleh Krehel, 2017/07/22
- [elpa] master f877855 12/36: hydra-examples.el (org-agenda-cts): Add, Oleh Krehel, 2017/07/22
- [elpa] master 0a5074a 09/36: hydra.el (hydra--format): Avoid inf loops, Oleh Krehel, 2017/07/22
- [elpa] master 270b917 14/36: hydra.el (defhydra): Don't eval hints during the definition, Oleh Krehel, 2017/07/22
- [elpa] master 200a444 10/36: hydra.el (hydra--hint): Revert return "" for :hint nil, Oleh Krehel, 2017/07/22
- [elpa] master 798684a 13/36: hydra-examples.el: Don't byte-compile, Oleh Krehel, 2017/07/22
- [elpa] master 1eee0f3 18/36: hydra.el (hydra-get-property): New defun., Oleh Krehel, 2017/07/22
- [elpa] master 272dc4a 05/36: hydra.el (hydra-docstring-keys-translate-alist): Update, Oleh Krehel, 2017/07/22
- [elpa] master 5be27f4 02/36: Add a shortcut to supply a head's eval-able docstring, Oleh Krehel, 2017/07/22
- [elpa] master 585db09 17/36: hydra-examples.el: Add example of setting verbosity, Oleh Krehel, 2017/07/22