Commit Graph

150 Commits

Author SHA1 Message Date
19482ee582 feat(latex): allow fill-paragraph in description
Ref: #1849
2024-01-24 12:06:35 -05:00
c2818bcfaa fix(latex): avoid stealing focus after compilation
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.
2023-11-27 21:35:55 -05:00
ad6a3d0f33 refactor: deprecate featurep! for modulep!
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.
2022-08-14 20:43:35 +02:00
9cb4c8b637 fix(:lang): ensure lsp! is always appended to hooks 2022-07-25 18:12:03 +02:00
a16571db04 nit(latex): table d'hôte
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.
2021-11-24 13:08:34 +01:00
c247f9aabd fix(latex): run AUCTeX folding after font locking
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.
2021-11-18 19:05:36 +01:00
316209ea61 feat(latex): add keybinds for compilation (#5585) 2021-10-11 00:18:51 +02:00
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
eb3d645bde fix(latex): bind TeX-view in LaTeX-mode-map too
Close #4945
2021-08-01 15:15:45 -04:00
9478a6a901 lang/latex +fold: fix error when yas-snippet-{beg,end} are nil 2021-06-08 16:23:02 +03:00
68d1a45034 Key bindings for latex preview 2021-04-16 21:23:43 +03:00
2ee9e3759c More sane defaults for latex 2021-04-16 21:23:42 +03:00
0d6c32ff25 Fix #4288: no which-key label for TeX-view 2020-11-20 14:10:29 -05:00
4fc084e7bd Fix #4209: void-function +latex/LaTeX-indent-item
This was renamed to +latex-indent-item-fn in 98826f3
2020-11-03 15:24:56 -05:00
55b18b70c3 delete extra paren in :lang latex
introduced in #4183
2020-10-31 11:54:11 +02:00
ccfa2855a1 Map Tex-view to localleader-v 2020-10-31 01:55:36 +02:00
98826f33d0 lang/latex: rethink item continuation indentation
+ 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
2020-10-20 22:55:20 -04:00
dd775167ae Add evil-tex package to :lang latex 2020-08-08 19:22:05 +03:00
3528fe0ca9 lang/latex: refactor & fix hooks 2020-05-08 06:28:35 -04:00
4d8ab273d5 Remove duplicate latex entry in docs/modules.org 2020-04-26 04:47:26 -04:00
96276a688d Merge branch 'develop' into lsp-tex 2020-04-26 10:40:34 +04:30
e4b570c9ae Fix tex-lsp related commented issues 2020-04-26 10:37:35 +04:30
8a115642ab Merge pull request #2812 from yoavm448/tex-fold
Add +fold flag to lang/latex for TeX-fold
2020-04-07 17:37:47 -04:00
bee1a794a2 Remove redundant variable 2020-04-07 13:16:40 -04:00
5e35662b9f Add +fold flag to lang/latex for TeX-fold 2020-04-07 15:48:49 +03:00
76ae9e687a Move hooks to (after! tex) block 2020-03-27 16:25:33 +04:30
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
6b68dcceee Minor fixes in docs and check for :lang lsp. 2020-03-19 19:19:35 +03:30
d046d35aeb Added +lsp to Tex-Mode. 2020-03-19 13:42:06 +03:30
120818b07e Bump :lang latex
cdominik/cdlatex@b7af5a9 -> cdominik/cdlatex@a5cb624
TheBB/company-reftex@33935e9 -> TheBB/company-reftex@275ef70
2020-03-06 15:42:35 -05:00
2f61c79a86 Pronunciation in a comment 2020-02-10 10:14:42 +02:00
afe819e2a1 Use map! for nilling out cdlatex's keymap
I previously thought this didn't work, but it seems to now...?
2020-02-08 00:37:13 +02:00
883a326e87 Add cdlatex support in latex: +cdlatex
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.
2020-02-07 13:06:14 +02:00
06c604503a Don't auto-fill in latex math/markdonw code blocks
Fixes #2453
2020-02-03 13:28:05 -05:00
a1f6f77ca0 Remove redundant flyspell-mode hook in latex
flyspell-mode is already on text-mode-hook
2019-10-24 13:39:03 -04:00
3140ab7337 lang/latex: fix advice name conflict #1849 2019-10-23 22:28:44 -04:00
237d2d3c3a lang/latex: fix fix for fill-paragraph in latex-mode #1849 2019-10-23 14:14:33 -04:00
da765bebda lang/latex: fix rainbow-delimiters-mode 2019-10-22 23:23:53 -04:00
1e90bc8c14 lang/latex: fix typo 2019-10-22 23:23:41 -04:00
d52be9de3e lang/latex: fix loading style files #1910. 2019-10-17 12:05:43 -04:00
b0c780b7dd lang/latex: fix setting variables #1910. 2019-10-16 15:43:05 -04:00
31c95042c3 lang/latex: fix autofill in \item's #1849 2019-10-03 20:49:04 -04:00
921e36decd Merge pull request #1850 from alexandergraul/fix-latex-documentation
lang/latex: update docs wrt latex viewers
2019-10-03 12:10:43 -04:00
db2901af71 Update documentation of recognized latex viewers
The user documentation of +latex-viewers did not keep up with changes to
the variable. This commit realigns its documentation.
2019-10-03 12:56:56 +02:00
7ec6a32c30 lang/latex: associate .tex with LaTeX-mode 2019-09-26 14:26:47 -04:00
1c05773c39 General, minor refactors & comment revision 2019-09-11 23:41:08 -04:00
3fae411918 lang/latex: refactor default viewer resolution
And add evince to list of auto-detected viewers.

This should fix an issue where preview-pane was used regardless of what
viewer(s) were available.
2019-08-27 00:11:52 -04:00
76cacb5bfe 💥 Rename def-package! -> use-package!
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.
2019-07-23 12:50:45 +02:00
fbcb4e6973 Minor refactor across the board 2019-03-04 20:47:26 -05:00
5da216a1c5 Add: sumatrapdf as pdf viewer on Windows 2019-02-24 17:44:06 +08:00