-
-
Notifications
You must be signed in to change notification settings - Fork 113
Special characters in heads/docs #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to modify your code like this: (defhydra hydra-operate-on-number ()
"
Arithmetic operations: + - * /
Remainder: \\
Exponent: \\^
Arithmetic shift:< >
Base conversion: b o x X #
Choices: "
("+" apply-operation-to-number-at-point)
("-" apply-operation-to-number-at-point)
("*" apply-operation-to-number-at-point)
("/" apply-operation-to-number-at-point)
("\\" apply-operation-to-number-at-point)
("^" apply-operation-to-number-at-point)
("<" apply-operation-to-number-at-point)
(">" apply-operation-to-number-at-point)
("b" apply-operation-to-number-at-point :exit t)
("o" apply-operation-to-number-at-point :exit t)
("x" apply-operation-to-number-at-point :exit t)
("X" apply-operation-to-number-at-point :exit t)
("#" apply-operation-to-number-at-point :exit t)
("%" apply-operation-to-number-at-point :exit t)) Note the starting newline and the escaping of |
Hmm, Am I missing something fundamental? |
Did you forget the newline? I just test this, it works: (defhydra hydra-zoom (global-map "<f2>")
"
zoom"
("%" text-scale-increase "in")
("l" text-scale-decrease "out")) |
I don't think so. Here is the code:
which
where you can see that the last |
* hydra.el (hydra--hint): Simplify. Fixes #126
This works, thanks. The only interesting bit is that I added |
The special character
%
in the last head below and the character^
in the docstring below are not handled correctly:The text was updated successfully, but these errors were encountered: