aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-markdown.el
blob: 0c5ecc62bcd899029b5102338498a5fab89e9e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(when (gx/maybe-require-package 'markdown-mode)
  (add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
  (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
  (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)))

(with-eval-after-load 'evil
  (evil-define-key 'normal markdown-mode-map
    (kbd "<RET>") 'markdown-follow-link-at-point))

(setq markdown-command '("pandoc" "--from=markdown" "--to=html5"))

(provide 'init-markdown)