Skip to content

Commit

Permalink
hydra.el (hydra-key-format-spec): set default to "%s"
Browse files Browse the repository at this point in the history
* hydra-test.el (hydra-format): Update test.
(hydra-format-with-sexp): Update test.
  • Loading branch information
abo-abo committed Feb 25, 2015
1 parent 3040f45 commit 6d6bbd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions hydra-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,9 @@ _f_ auto-fill-mode: %`auto-fill-function
("t" toggle-truncate-lines nil)
("w" whitespace-mode nil)
("q" nil "quit"))))
'(concat (format "% 3s abbrev-mode: %S
% 3s debug-on-error: %S
% 3s auto-fill-mode: %S
'(concat (format "%s abbrev-mode: %S
%s debug-on-error: %S
%s auto-fill-mode: %S
" "{a}" abbrev-mode "{d}" debug-on-error "{f}" auto-fill-function) "[[q]]: quit"))))

(ert-deftest hydra-format-with-sexp ()
Expand All @@ -698,7 +698,7 @@ _f_ auto-fill-mode: %`auto-fill-function
'hydra-toggle nil
"\n_n_ narrow-or-widen-dwim %(progn (message \"checking\")(buffer-narrowed-p))asdf\n"
'(("n" narrow-to-region nil) ("q" nil "cancel"))))
'(concat (format "% 3s narrow-or-widen-dwim %Sasdf\n"
'(concat (format "%s narrow-or-widen-dwim %Sasdf\n"
"{n}"
(progn
(message "checking")
Expand Down
2 changes: 1 addition & 1 deletion hydra.el
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ It's possible to set this to nil.")
"When non-nil, hydra will issue some non-essential style warnings."
:type 'boolean)

(defcustom hydra-key-format-spec "% 3s"
(defcustom hydra-key-format-spec "%s"
"Default `format'-style specifier for _a_ syntax in docstrings.
When nil, you can specify your own at each location like this: _ 5a_.")

Expand Down

0 comments on commit 6d6bbd4

Please sign in to comment.