markdown: refactor config
This commit is contained in:
parent
2cbcf55a24
commit
1addb26840
1 changed files with 20 additions and 24 deletions
|
@ -7,13 +7,9 @@
|
||||||
markdown-wrap-or-insert
|
markdown-wrap-or-insert
|
||||||
markdown-unwrap-thing-at-point)
|
markdown-unwrap-thing-at-point)
|
||||||
:init
|
:init
|
||||||
(add-hook 'markdown-mode-hook 'narf|enable-hard-wrap)
|
(add-hook 'markdown-mode-hook 'turn-on-auto-fill)
|
||||||
:config
|
:config
|
||||||
(sp-local-pair 'markdown-mode "```" "```"
|
(map! :map markdown-mode-map
|
||||||
:post-handlers '(("||\n[i]" "RET"))
|
|
||||||
:unless '(sp-point-before-word-p sp-point-before-same-p))
|
|
||||||
|
|
||||||
(map! (:map markdown-mode-map
|
|
||||||
"<backspace>" nil
|
"<backspace>" nil
|
||||||
"<M-left>" nil
|
"<M-left>" nil
|
||||||
"<M-right>" nil
|
"<M-right>" nil
|
||||||
|
@ -36,7 +32,7 @@
|
||||||
:n "[p" 'markdown-promote
|
:n "[p" 'markdown-promote
|
||||||
:n "]p" 'markdown-demote
|
:n "]p" 'markdown-demote
|
||||||
|
|
||||||
:i "M--" 'markdown-insert-hr))
|
:i "M--" 'markdown-insert-hr)
|
||||||
|
|
||||||
(use-package markdown-toc :commands (markdown-toc-generate-toc)))
|
(use-package markdown-toc :commands (markdown-toc-generate-toc)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue