summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2014-08-09 11:22:29 +0100
committerAlan Pearce2014-08-09 11:22:29 +0100
commitefe359272804acb9ad3fc65062393861dd787e7b (patch)
treeb1961cfca1ddee269807dfb788b540b799ee33b8 /tag-emacs/emacs.d
parent7f9658c3a1d698bb69c7683dbfcebbcde3f89717 (diff)
downloaddotfiles-efe359272804acb9ad3fc65062393861dd787e7b.tar.lz
dotfiles-efe359272804acb9ad3fc65062393861dd787e7b.tar.zst
dotfiles-efe359272804acb9ad3fc65062393861dd787e7b.zip
Emacs: Add shell script submode to markdown
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.el8
1 files changed, 7 insertions, 1 deletions
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