-
Notifications
You must be signed in to change notification settings - Fork 16
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
different colors for different highlights #25
Comments
You can specify a face of a regexp in (setq guide-key/highlight-command-regexp
'(("^helm-" . warning)
("^projectile-" . error))) Choose your favorite face instead of If mode specific setting, use (add-hook 'c-mode-common-hook
(lambda ()
(guide-key/add-local-highlight-command-regexp '("^helm-" . warning))
(guide-key/add-local-highlight-command-regexp '("^projectile-" . error))
)) I'm sorry but this feature is not documented in README.org. |
The meaning of The OR operator of Emacs Lisp regular expression is |
Besides |
I've implemented this feature. Try it from MELPA or github. Please specify your favorite color name as string. (setq guide-key/highlight-command-regexp
'(("^helm-" . "sky blue")
("^projectile-" . "hot pink"))) You can get available color names by |
The default highlight color of
Prefix
is green, the color of string defined inguide-key/highlight-command-regexp
andguide-key/add-local-highlight-command-regexp
are all yellow, can I specific a color for a specific string??For example, I got
and:
How can I make
helm
-related andprojectile
-related functions be highlighted in different colors?BTW, what is the meaning of
\\
in"rectangle\\|register\\|helm\\|projectile"
?The text was updated successfully, but these errors were encountered: