From 5f4dff664c15f0f2c27633459737e422b73c1ad4 Mon Sep 17 00:00:00 2001 From: noa Date: Tue, 17 Sep 2024 10:03:07 +0800 Subject: Convert markdown-mode to use-package --- emacs/init.el | 21 ++++++++------------- 1 file 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 -- cgit 1.4.1-2-gfad0