jemdoc-mode
is a major mode for editing jemdoc files.
If you have a recent version of package.el
you can install jemdoc-mode
from
the MELPA package repository.
Ensure that jemdoc-mode.el
is in a directory on your load-path, and add (require 'jemdoc-mode)
to your ~/.emacs
or ~/.emacs.d/init.el
.
-
If
font-lock+
is installed, it is used to ignore (i.e., not fontify) code-block regions (i.e., tilde blocks with{...}{...}
arguments) -
There is a simple option for editing code-blocks with proper syntax highlighting in an "edit-buffer" (see
jemdoc-mode-edit-code-block
, and the associated keybindingC-x n r
). The edited text can be inserted back in the jemdoc buffer (using the menu at the top of the "edit-buffer"). -
By default
jit-lock
is not used as afont-lock
support mode. It could be turned on by settingjemdoc-font-lock-support-mode
to'jit-lock
(setq jemdoc-font-lock-support-mode 'jit-lock)