Skip to content
Emacs major mode for editing Hamlet files
Emacs Lisp
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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

If you have Emacs >= 24, you can conveniently install hamlet-mode via the package in MELPA.

To install manually, 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)
Something went wrong with that request. Please try again.