all repos — nixfiles @ 1ddedd165d9342866f7592a4d46fa8c3c48c150c

System and user configuration, managed by nix and home-manager

Emacs: Use MMM for toml in markdown front matter

Alan Pearce
commit

1ddedd165d9342866f7592a4d46fa8c3c48c150c

parent

fac5dc322f8860308e4c9991e501b292f34dc92c

1 file changed, 8 insertions(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1110,7 +1110,14 @@ :front "\\($\\(sql\\|query\\)\\s-*=\\s-*[\"']\\|<<<SQL\\)"
: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