Skip to content

Instantly share code, notes, and snippets.

@doitian
Created January 12, 2012 12:07
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 doitian/1600148 to your computer and use it in GitHub Desktop.
Save doitian/1600148 to your computer and use it in GitHub Desktop.
Hilight new ruby hash in Emacs
(font-lock-add-keywords
'ruby-mode
'(("\\(\\b\\sw[_a-zA-Z0-9]*:\\)\\(?:\\s-\\|$\\)" (1 font-lock-constant-face))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment