This is a huge set of pedantic changes, none them affecting actual code.
Mostly, I tried to:
- use consistent names; e.g, use LaTeX wherever possible, not latex;
- fix broken symbol links;
- use capitalized comments with full stops.
This guarantees that `TeX-fold-buffer` is run after the style
hooks and not before. Otherwise, it looks like they may
reset/erase font-lock stuff you have set up.
+ Rename +latex-indent-level-item-continuation to
+latex-indent-item-continuation-offset, which more accurately reflects
its purpose.
+ +latex-indent-item-continuation-offset now supports `align' and `auto'
settings.
+ It can also be disabled by setting it to nil.
Fixes#3877
cdlatex has 4 main functionalities:
+ Math and environments snippets: I've disabled these in favor of
yasnippet when using :editor snippets by just unbinding the TAB in
cdlatex's keymap
+ Auto insertion of closing delimiters: disabled in favor of smartparens
+ Fast insertion for some macros: `a becomes \alpha. Kept as-is
+ Fast accent insertion: a'~ becomes \tilde{a}. Kept as-is
I also updated the docs, and added a section explaining how to re-enable
cdlatex's snippets despite having yasnippet.
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.
Also changes def-package-hook! -> use-package-hook!
The old macros are now marked obsolete and will be removed when straight
integration is merged.
The varible `TeX-mode-local-vars-hook` is not called correctly as AucTeX
reports that the major mode in a LaTeX file is `latex-mode`. Instead,
let's use `latex-mode-local-vars-hook` to enable flyspell.
This change enables disabling the feature of flyspell of immediately
spellchecking a document with:
`(setq-hook! 'TeX-mode-hook +spellcheck-immediately nil)`