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,8 +48,11 @@ If no viewers are found, `latex-preview-pane' is used.")
(setq-default TeX-master t)
;; set-up chktex
(setcar (cdr (assoc "Check" TeX-command-list)) "chktex -v6 -H %s")
;; tell emacs how to parse tex files
(setq-hook! 'TeX-mode-hook ispell-parser 'tex)
(setq-hook! 'TeX-mode-hook
;; tell emacs how to parse tex files
ispell-parser 'tex
;; Don't auto-fill in math blocks
fill-nobreak-predicate (cons #'texmathp fill-nobreak-predicate))
;; Enable word wrapping
(add-hook 'TeX-mode-hook #'visual-line-mode)
;; Fold TeX macros