Current LaTeX module uses `TeX-command-run-all` for compilation, which
by default opens the compiled document in a viewer. This behavior causes
a loss of focus from the Emacs window. We address this by adding a
custom compilation function.
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.
featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
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.