Created
August 5, 2015 15:53
-
-
Save gugiserman/62d14da800a9fc3eee14 to your computer and use it in GitHub Desktop.
Highlights "@" with different color in coffee-mode
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
(defface my/coffee-at-mark | |
'((t (:foreground "green"))) | |
"my at mark") | |
(font-lock-add-keywords | |
'coffee-mode | |
'(("\\(@\\)\\([_[:word:]]+\\|\\<this\\)\\>" | |
(1 'my/coffee-at-mark) | |
(2 font-lock-variable-name-face)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment