diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-07-25 17:17:19 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-07-25 17:17:19 -0700 |
commit | be4d6e46a58f891b24045d7e66752a644bb3f47c (patch) | |
tree | 770cbc5561247df028577561079678b6edd62206 /emacs.d/custom | |
parent | [emacs] rework the configuration for navigation. (diff) | |
download | emacs.d-be4d6e46a58f891b24045d7e66752a644bb3f47c.tar.gz |
[emacs] use pandoc if available for markdown
Diffstat (limited to 'emacs.d/custom')
-rw-r--r-- | emacs.d/custom/fcuny-text.el | 5 |
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) |