Skip to content

Instantly share code, notes, and snippets.

;;;; This file is a hack to make longlines-mode to work better in latex-mode.
;; 1. It makes it so that longlines-mode does NOT wrap equations.
;; 2. It makes it so that wrapped lines follow the indentation of the
;; line above. So environments with indented text (like itemize, or
;; theorem) are MUCH more readable.
(eval-after-load 'tex-mode
'(progn
(require 'longlines nil t)
(add-hook 'latex-mode-hook #'longlines-mode)))