-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for a %s(test) spec in docstring
* hydra.el (hydra-set-transient-map): Avoid compiler warnings. (hydra--format): Add s? to regex. - %(test) will translate to (format "%S" (test)) - %s(test) will translate to (format "%s" (test)) The width specifiers should work for both, e.g. % -10(test) or % -10s(test). Example: (defhydra hydra-marked-items (dired-mode-map "") " Number of marked items: %(length (dired-get-marked-files)) Directory size: %s(shell-command-to-string \"du -hs\") " ("m" dired-mark "mark")) Fixes #65.
- Loading branch information
Showing
1 changed file
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters