template-overlays
Emacs overlays for template files
Install
Via el-get
(push '(:name template-overlays
:type git
:url "git://github.com/mmontone/template-overlays.git"
:features template-overlays
:depends (ov)
:compile "template-overlays.el")
el-get-sources)
(el-get 'sync '(template-overlays))
Use
(require 'template-overlays)
(add-hook 'web-mode-hook 'template-overlays-mode)
Custom delimiters
Add delimiters to template-overlays-delimiters
. Syntax is (delim-from delim-to &rest options)
.
;; Custom template overlay delimiters
(setcdr (last template-overlays-delimiters)
'(("<%=" "%>" face (:box t))
("<%" "%>" face (:weight bold))
("{_" "_}" face (:slant italic))))