aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-markdown.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-13 00:07:38 +0800
committerGuangxiong Lin <[email protected]>2022-03-13 00:09:13 +0800
commit38ab771977e6511d02df06cb908824707d728303 (patch)
tree2c77fb392b35e8e7c2105d3bb29f24b34c5388f7 /.emacs.d/lisp/init-markdown.el
parent0097d1f3e22565ffb6db689c06ee2f9610cd45d0 (diff)
downloaddotfiles-38ab771977e6511d02df06cb908824707d728303.tar.gz
dotfiles-38ab771977e6511d02df06cb908824707d728303.tar.bz2
dotfiles-38ab771977e6511d02df06cb908824707d728303.zip
Refactor emacs config
Use less use-package features
Diffstat (limited to '.emacs.d/lisp/init-markdown.el')
-rw-r--r--.emacs.d/lisp/init-markdown.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-markdown.el b/.emacs.d/lisp/init-markdown.el
new file mode 100644
index 0000000..94c718f
--- /dev/null
+++ b/.emacs.d/lisp/init-markdown.el
@@ -0,0 +1,13 @@
+(use-package markdown-mode :ensure t :defer t)
+
+(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)