diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-07-31 13:48:15 -0700 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-07-31 13:48:15 -0700 |
commit | 2c8a0741603a273e516c2771fc11f83e2ec8bac5 (patch) | |
tree | f19b9efcb4059e87b90636fff0843b62c181664d | |
parent | [emacs] Set indentation width to 4 for go-mode. (diff) | |
download | emacs.d-2c8a0741603a273e516c2771fc11f83e2ec8bac5.tar.gz |
[emacs] markdown configuration
Set the default flavor of markdown to GitHub, and use `pandoc` as the default markdown command to render/preview. Closes #14
-rw-r--r-- | emacs.d/init.el | 7 |
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) |