1
0
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:
Stefan Ellmauthaler 2022-04-29 13:56:05 +02:00
parent 9c5918afac
commit 108adbe40b

View File

@ -247,8 +247,9 @@
:demand t :demand t
:no-require t :no-require t
:preface (defun mm/disable-auto-fill-for-papers () :preface (defun mm/disable-auto-fill-for-papers ()
(auto-fill-mode (if (string-match "ellmau/repo/" (buffer-file-name))
(string-match "ellmau/repo/" (buffer-file-name)))) (progn (turn-off-auto-fill)
(setq-local yas--original-auto-fill-function nil))))
:hook :hook
((LaTeX-mode . flyspell-mode) ((LaTeX-mode . flyspell-mode)
(LaTeX-mode . latex-math-mode) (LaTeX-mode . latex-math-mode)