diff options
Diffstat (limited to '.emacs.d/lisp/init-markdown.el')
-rw-r--r-- | .emacs.d/lisp/init-markdown.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/.emacs.d/lisp/init-markdown.el b/.emacs.d/lisp/init-markdown.el index 94c718f..0c5ecc6 100644 --- a/.emacs.d/lisp/init-markdown.el +++ b/.emacs.d/lisp/init-markdown.el @@ -1,8 +1,7 @@ -(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)) +(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 |