diff options
-rw-r--r-- | emacs/init.el | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/emacs/init.el b/emacs/init.el index 206361b..a60d8dc 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -374,19 +374,14 @@ (setopt valign-max-table-size 0) ;; Markdown - -;; (package-ensure 'markdown-mode) -(add-to-list 'auto-mode-alist - '("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode)) - -;; When inserting a link, only prompt for url and link text -(setopt markdown-disable-tooltip-prompt t) - -;; I don't believe markdown should have html -(setopt markdown-enable-html nil) - -(setopt markdown-hide-urls t) -(setopt markdown-url-compose-char ?🔗) +(use-package markdown-mode + :ensure t + :mode ("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode) + :custom + (markdown-disable-tooltip-prompt t) ; When inserting a link, only prompt for url and link text + (markdown-enable-html nil) ; I don't believe markdown should have html + (markdown-hide-urls t) ; Make inline urls look a bit neater + (markdown-url-compose-char ?🔗)) ;; Autocorrection |