Skip to content

Instantly share code, notes, and snippets.

@gugiserman
Created August 5, 2015 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gugiserman/62d14da800a9fc3eee14 to your computer and use it in GitHub Desktop.
Save gugiserman/62d14da800a9fc3eee14 to your computer and use it in GitHub Desktop.
Highlights "@" with different color in coffee-mode
(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