From efe359272804acb9ad3fc65062393861dd787e7b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Aug 2014 11:22:29 +0100 Subject: Emacs: Add shell script submode to markdown --- tag-emacs/emacs.d/init.el | 8 +++++++- 1 file changed, 7 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 2f52c09..4359355 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -1279,9 +1279,15 @@ mouse-1: Display Line and Column Mode Menu")))))) :submode common-lisp-mode :face mmm-code-submode-face :front "^{{% highlight cl %}}[\r\n]+" + :back "^{{% /highlight %}}$") + (markdown-shell + :submode shell-script-mode + :face mmm-code-submode-face + :front "^{{% highlight sh %}}[\r\n]+" :back "^{{% /highlight %}}$"))) (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-toml) - (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-lisp)) + (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-lisp) + (mmm-add-mode-ext-class 'markdown-mode nil 'markdown-shell)) :init (setq mmm-global-mode 'maybe)) ;;;; Windows & Frames -- cgit 1.4.1