haml-mode
is an Emacs major mode for use with
HAML source files.
It provides syntax highlighting and support for syntax-aware indentation.
Support for syntax checking is built into Flycheck.
For flymake
, see flymake-haml.
You can install haml-mode
from the
MELPA.
Ensure haml-mode.el
is in a directory on your load-path, and
add the following to your ~/.emacs
or ~/.emacs.d/init.el
:
(require 'haml-mode)
Certain nested :filter
blocks are syntax-highlighted if additional
libraries are available. Emacs 24's js
library will be used for
:javascript
blocks, while markdown-mode
and textile-mode
will be
used for :markdown
and :textile
blocks respectively.
Author: Natalie Weizenbaum
Maintainer: Steve Purcell
Homepage: https://github.com/nex3/haml-mode