Skip to content

Instantly share code, notes, and snippets.

@AaronJackson
Last active March 12, 2016 20:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AaronJackson/35f3b7d41774bd5bc516 to your computer and use it in GitHub Desktop.
caffe-mode.el for emacs
;; Aaron Jackson <asj@cs.nott.ac.uk>
;; caffe-mode.el
(setq caffe-mode-highlights
'((".*\s{" . font-lock-function-name-face)
("^\s*.+:" . font-lock-keyword-face)
("#+.*" . font-lock-comment-face)
("'.*'" . font-lock-string-face)
("[A-z]" . font-lock-constant-face)
("false\\|true" . font-lock-constant-face)
("[0-9.e]+" . font-lock-constant-face)
))
(define-derived-mode caffe-mode fundamental-mode
(setq font-lock-defaults '(caffe-mode-highlights))
(setq mode-name "Caffe"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment