Hacker News new | ask | show | jobs
by deltasquared 4868 days ago
Nice idea. It seems pretty easy to understand. Where is the emacs mode?
1 comments

Well if anyone wants an emacs mode for this: (require 'generic-x) ;; we need this

(define-generic-mode 'critic-mode nil nil '(("{--.--}" . 'font-lock-warning-face) ("{~~.~~}" . 'font-lock-constant-face) ("{{.}}" . 'font-lock-keyword-face) ("{>>.<<}" . 'font-lock-function-name-face) ("{\+\+.*\+\+}" . 'font-lock-type-face) ) nil nil "A mode for foo files" )