mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
markdown: refactor config
This commit is contained in:
@@ -7,13 +7,9 @@
|
||||
markdown-wrap-or-insert
|
||||
markdown-unwrap-thing-at-point)
|
||||
:init
|
||||
(add-hook 'markdown-mode-hook 'narf|enable-hard-wrap)
|
||||
(add-hook 'markdown-mode-hook 'turn-on-auto-fill)
|
||||
:config
|
||||
(sp-local-pair 'markdown-mode "```" "```"
|
||||
:post-handlers '(("||\n[i]" "RET"))
|
||||
:unless '(sp-point-before-word-p sp-point-before-same-p))
|
||||
|
||||
(map! (:map markdown-mode-map
|
||||
(map! :map markdown-mode-map
|
||||
"<backspace>" nil
|
||||
"<M-left>" nil
|
||||
"<M-right>" nil
|
||||
@@ -36,7 +32,7 @@
|
||||
:n "[p" 'markdown-promote
|
||||
:n "]p" 'markdown-demote
|
||||
|
||||
:i "M--" 'markdown-insert-hr))
|
||||
:i "M--" 'markdown-insert-hr)
|
||||
|
||||
(use-package markdown-toc :commands (markdown-toc-generate-toc)))
|
||||
|
||||
|
Reference in New Issue
Block a user