From 2c8a0741603a273e516c2771fc11f83e2ec8bac5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 31 Jul 2016 13:48:15 -0700 Subject: [emacs] markdown configuration Set the default flavor of markdown to GitHub, and use `pandoc` as the default markdown command to render/preview. Closes #14 --- emacs.d/init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index 8b9ba13..5c29461 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -256,10 +256,9 @@ Return the new window for BUFFER." (add-hook 'before-save-hook 'gofmt-before-save))) ;; configuration for markdown -(require 'markdown-mode) -(let ((preferred-markdown-impl "peg-markdown")) - (when (executable-find preferred-markdown-impl) - (setq markdown-command preferred-markdown-impl))) +(autoload 'gfm-mode "markdown-mode" nil t) +(add-to-list 'auto-mode-alist '("\\.md" . gfm-mode)) +(setq markdown-command "pandoc -f markdown_github") ;; configuration for python (require 'python) -- cgit 1.4.1