Markdown ts mode!

This commit is contained in:
2026-08-26 03:38:01 -07:00
parent 82e73d6df0
commit 4c44f3765f
+11 -1
View File
@@ -2243,6 +2243,12 @@ This is :around advice, so OLDFUN is the real function
;; markdown
(use-package markdown-mode
:hook (markdown-mode . auto-fill-mode))
(use-package markdown-ts-mode
:defer t
:commands (markdown-ts-mode)
:hook (markdown-ts-mode . auto-fill-mode)
:init
(add-to-list 'major-mode-remap-alist '(markdown-mode . markdown-ts-mode)))
;; enriched-mode (builtin)
(use-package enriched
@@ -3980,8 +3986,12 @@ one of the normal rainbow-delimiters-depth-N-face faces."
"a" #'gptel-add
"A" #'gptel-add-file
"q" #'gptel-abort)
(keymap-global-set "C-c y" #'my/gptel-prefix-map)
(keymap-global-set "C-c y" 'my/gptel-prefix-map)
:config
;; Don't use makrdown-ts-mode (highlighting is off)
;; (setopt gptel-default-mode #'markdown-ts-mode)
(add-to-list 'gptel-prompt-prefix-alist '(markdown-ts-mode . "### "))
(defun my/-setup-gptel-mode ()
"Set up `gptel-mode'."
(setq-local show-trailing-whitespace nil))