diff options
author | noa | 2024-09-17 10:03:07 +0800 |
---|---|---|
committer | noa | 2024-09-17 10:03:07 +0800 |
commit | 5f4dff664c15f0f2c27633459737e422b73c1ad4 (patch) | |
tree | 0a8bd6f3603001328f08937cc2559c03fb71b481 | |
parent | 0afebd964fde8e899f26aa1a9503bfd0753aab9b (diff) |
Convert markdown-mode to use-package
-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 |