summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/init.el7
1 files 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)