From 1ddedd165d9342866f7592a4d46fa8c3c48c150c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 12 Jul 2014 22:44:28 +0100 Subject: Emacs: Use MMM for toml in markdown front matter --- tag-emacs/emacs.d/init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tag-emacs/emacs.d') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 4c96f57..bc131f5 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -1110,7 +1110,14 @@ :back "\\([\"']\\|SQL\\);?" :face mmm-code-submode-face))) (mmm-add-mode-ext-class 'php-mode "\\.php$" 'php-sql) - (setq php-sql-mmm-submode-enabled t)))) + (setq php-sql-mmm-submode-enabled t))) + (mmm-add-classes + '((markdown-toml + :submode toml-mode + :face mmm-declaration-submode-face + :front "\\`+++[\n\r]+" + :back "^+++$"))) + (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-toml)) :init (setq mmm-global-mode 'maybe)) ;;;; Windows & Frames -- cgit 1.4.1