diff options
| author | David Aspinall | 2007-12-13 15:11:37 +0000 |
|---|---|---|
| committer | David Aspinall | 2007-12-13 15:11:37 +0000 |
| commit | 9be832ab38477435422110cc52b1cdca790fc37b (patch) | |
| tree | a41439425196d5bce417d4a9ab1f5f09be1f122c | |
| parent | 74283b0dc05ebf52c10bb01da716cea2b12c478f (diff) | |
New files.
| -rw-r--r-- | coq/coq-mmm.el | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/coq/coq-mmm.el b/coq/coq-mmm.el new file mode 100644 index 00000000..46f9476f --- /dev/null +++ b/coq/coq-mmm.el @@ -0,0 +1,49 @@ +;; coq-mmm.el Configure MMM mode for CoqDoc elements +;; +;; Copyright (C) 2007 David Aspinall +;; Authors: David Aspinall <David.Aspinall@ed.ac.uk> +;; Licence: GPL +;; +;; $Id$ +;; +;; We only spot some simple cases of embedded LaTeX/HTML/verbatim. +;; +;; At the moment, the insertion has a bad interaction with the holes +;; code which also uses skeletons: the interesting positions used +;; for MMM markup are made into holes! + +(mmm-add-group + 'coq + `((coq-text + :submode text-mode + :face mmm-comment-submode-face + :front "(\\*\\*[ \t]" + :back "[ ]?\\*)" + :insert ((?d coqdoc-text nil @ "(** " @ " _ " @ " *)" @))) + + (coq-latex + :submode LaTeX-mode + :face mmm-comment-submode-face + :front "(\\*\\*[^%\\$]*[%\\$]" + :back "[%\\$][ \t]*\\*)" + :insert ((?l coqdoc-latex nil @ "(** %" @ " _ " @ "% *)" @))) + + (coq-html + :submode html-mode + :face mmm-comment-submode-face + :front "(\\*\\*[^#]*#" + :back "#[ \t]*\\*)" + :insert ((?h coqdoc-html nil @ "(** #" @ " _ " @ "# *)" @))) + + (coq-verbatim + :submode text-mode + :face mmm-code-submode-face + :front "^[ \t]*<<" + :back ">>" + :insert ((?v coqdoc-verbatim nil @ "<<\n" @ " _ " @ "\n>>" @))) + )) + + +(provide 'coq-mmm) + +;;; coq-mmm.el ends here |
