Don't auto-fill in latex math/markdonw code blocks

Fixes #2453
This commit is contained in:
Henrik Lissner 2020-02-03 13:27:43 -05:00
parent 1cacfcf962
commit 06c604503a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 9 additions and 2 deletions

View file

@ -48,6 +48,10 @@ capture, the end position, and the output buffer.")
(set-lookup-handlers! '(markdown-mode gfm-mode)
:file #'markdown-follow-thing-at-point)
(setq-hook! 'markdown-mode-hook
fill-nobreak-predicate (cons #'markdown-code-block-at-point-p
fill-nobreak-predicate))
;; HACK Prevent mis-fontification of YAML metadata blocks in `markdown-mode'
;; which occurs when the first line contains a colon in it. See
;; https://github.com/jrblevin/markdown-mode/issues/328.