summary refs log tree commit diff
path: root/emacs.d/modes/lang-markdown.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/modes/lang-markdown.el')
-rw-r--r--emacs.d/modes/lang-markdown.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs.d/modes/lang-markdown.el b/emacs.d/modes/lang-markdown.el
new file mode 100644
index 0000000..f4f544d
--- /dev/null
+++ b/emacs.d/modes/lang-markdown.el
@@ -0,0 +1,10 @@
+(use-package markdown-mode
+  :ensure t
+  :mode ("\\.\\(m\\(ark\\)?down\\|md\\)$" . markdown-mode)
+  :config
+  (progn
+    (let ((preferred-markdown-impl "peg-markdown"))
+      (when (executable-find preferred-markdown-impl)
+        (setq markdown-command preferred-markdown-impl)))))
+
+(provide 'lang-markdown)