summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-07-25 17:17:19 -0700
committerFranck Cuny <fcuny@twitter.com>2019-07-25 17:17:19 -0700
commitbe4d6e46a58f891b24045d7e66752a644bb3f47c (patch)
tree770cbc5561247df028577561079678b6edd62206
parent[emacs] rework the configuration for navigation. (diff)
downloademacs.d-be4d6e46a58f891b24045d7e66752a644bb3f47c.tar.gz
[emacs] use pandoc if available for markdown
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-text.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs.d/custom/fcuny-text.el b/emacs.d/custom/fcuny-text.el
index 37a1338..a16c7a8 100644
--- a/emacs.d/custom/fcuny-text.el
+++ b/emacs.d/custom/fcuny-text.el
@@ -20,6 +20,9 @@
   :commands (markdown-mode gfm-mode)
   :mode (("README\\.md\\'" . gfm-mode)
          ("\\.md\\'"       . gfm-mode)
-         ("\\.markdown\\'" . gfm-mode)))
+         ("\\.markdown\\'" . gfm-mode))
+  :config
+  (when (executable-find "pandoc")
+    (setq markdown-command "pandoc -f markdown -t html")))
 
 (provide 'fcuny-text)