From be4d6e46a58f891b24045d7e66752a644bb3f47c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 25 Jul 2019 17:17:19 -0700 Subject: [emacs] use pandoc if available for markdown --- emacs.d/custom/fcuny-text.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1