Skip to content

Instantly share code, notes, and snippets.

@magnars
Created December 18, 2012 13:42
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 magnars/4328055 to your computer and use it in GitHub Desktop.
Save magnars/4328055 to your computer and use it in GitHub Desktop.
;; Use lambda for anonymous functions
(font-lock-add-keywords
'js2-mode `(("\\(function\\) *("
(0 (progn (compose-region (match-beginning 1)
(match-end 1) "\u0192")
nil)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment