summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-07-12 22:54:15 +0100
committerAlan Pearce2014-07-12 22:54:29 +0100
commit0f82040e9ab719eed92b178113200c1694550be0 (patch)
treefe1f08e0356842dc5c1eae814d227cddccdc5554 /tag-emacs
parente9200d1baa6a6c86503028c7d15696f6dddf45b7 (diff)
downloadnixfiles-0f82040e9ab719eed92b178113200c1694550be0.tar.lz
nixfiles-0f82040e9ab719eed92b178113200c1694550be0.tar.zst
nixfiles-0f82040e9ab719eed92b178113200c1694550be0.zip
Emacs: Add markdown+lisp MMM configuration
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 8fd1b20a..4ddab848 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1109,8 +1109,14 @@
                 :submode toml-mode
                 :face mmm-declaration-submode-face
                 :front "\\`+++[\n\r]+"
-                :back "^+++$")))
-            (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-toml))
+                :back "^+++$")
+               (markdown-lisp
+                :submode common-lisp-mode
+                :face mmm-code-submode-face
+                :front "^{{% highlight cl %}}[\r\n]+"
+                :back "^{{% /highlight %}}$")))
+            (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-toml)
+            (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-lisp))
   :init (setq mmm-global-mode 'maybe))
 
 ;;;; Windows & Frames