Emacs major mode for editing Hamlet files
Emacs Lisp
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits behind lightquake:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
hamlet-mode.el

README.md

About

hamlet-mode is an Emacs major mode for editing files written in Hamlet, a Haskell compile-time HTML templating engine. Currently it only provides syntax highlighting.

Installation

Simply put hamlet-mode.el wherever you want, load it, and (require 'hamlet-mode).

If you want to highlight quasiquoted Hamlet, install mmm-mode and do something like this:

(require 'mmm-vars)
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
 '((hamlet-quasiquote
    :submode hamlet-mode
    :delimiter-mode nil
    :front "\\[x?hamlet|"
    :back "|\\]")))
(mmm-add-mode-ext-class 'haskell-mode nil 'hamlet-quasiquote)