mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Fix non-autofill for latex paper in emacs
This commit is contained in:
parent
9c5918afac
commit
108adbe40b
@ -247,8 +247,9 @@
|
||||
:demand t
|
||||
:no-require t
|
||||
:preface (defun mm/disable-auto-fill-for-papers ()
|
||||
(auto-fill-mode
|
||||
(string-match "ellmau/repo/" (buffer-file-name))))
|
||||
(if (string-match "ellmau/repo/" (buffer-file-name))
|
||||
(progn (turn-off-auto-fill)
|
||||
(setq-local yas--original-auto-fill-function nil))))
|
||||
:hook
|
||||
((LaTeX-mode . flyspell-mode)
|
||||
(LaTeX-mode . latex-math-mode)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user