Skip to content

Instantly share code, notes, and snippets.

@krisajenkins
Created January 26, 2013 16:09
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 krisajenkins/4643059 to your computer and use it in GitHub Desktop.
Save krisajenkins/4643059 to your computer and use it in GitHub Desktop.
def*-style syntax highlighting for Clojure in Emacs
;;; Adds new defn-esque keyword highlighting.
(add-hook 'clojure-mode-hook '(lambda ()
(font-lock-add-keywords nil '(("(\\(defwidget\\)\\s-+\\(\\w+\\)"
(1 font-lock-keyword-face)
(2 font-lock-function-name-face))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment