Henrik Lissner
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
Yoav Marco
eb3d645bde
fix(latex): bind TeX-view in LaTeX-mode-map too
...
Close #4945
2021-08-01 15:15:45 -04:00
Yoav Marco
9478a6a901
lang/latex +fold: fix error when yas-snippet-{beg,end} are nil
2021-06-08 16:23:02 +03:00
yoavm448
68d1a45034
Key bindings for latex preview
2021-04-16 21:23:43 +03:00
yoavm448
2ee9e3759c
More sane defaults for latex
2021-04-16 21:23:42 +03:00
Henrik Lissner
0d6c32ff25
Fix #4288 : no which-key label for TeX-view
2020-11-20 14:10:29 -05:00
Henrik Lissner
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
Itai Y. Efrat
55b18b70c3
delete extra paren in :lang latex
...
introduced in #4183
2020-10-31 11:54:11 +02:00
George Xanthakis
ccfa2855a1
Map Tex-view to localleader-v
2020-10-31 01:55:36 +02:00
Henrik Lissner
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
Yoav Marco
dd775167ae
Add evil-tex package to :lang latex
2020-08-08 19:22:05 +03:00
Henrik Lissner
3528fe0ca9
lang/latex: refactor & fix hooks
2020-05-08 06:28:35 -04:00
Henrik Lissner
4d8ab273d5
Remove duplicate latex entry in docs/modules.org
2020-04-26 04:47:26 -04:00
M. Yas. Davoodeh
96276a688d
Merge branch 'develop' into lsp-tex
2020-04-26 10:40:34 +04:30
M. Yas. Davoodeh
e4b570c9ae
Fix tex-lsp related commented issues
2020-04-26 10:37:35 +04:30
Henrik Lissner
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
Patrick Elliott
bee1a794a2
Remove redundant variable
2020-04-07 13:16:40 -04:00
yoavm448
5e35662b9f
Add +fold flag to lang/latex for TeX-fold
2020-04-07 15:48:49 +03:00
M. Yas. Davoodeh
76ae9e687a
Move hooks to (after! tex)
block
2020-03-27 16:25:33 +04:30
Henrik Lissner
169f9a6121
General, minor refactor & reformatting
2020-03-27 01:25:30 -04:00
M. Yas. Davoodeh
6b68dcceee
Minor fixes in docs and check for :lang lsp.
2020-03-19 19:19:35 +03:30
M. Yas. Davoodeh
d046d35aeb
Added +lsp to Tex-Mode.
2020-03-19 13:42:06 +03:30
Henrik Lissner
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
yoavm448
2f61c79a86
Pronunciation in a comment
2020-02-10 10:14:42 +02:00
yoavm448
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
yoavm448
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
Henrik Lissner
06c604503a
Don't auto-fill in latex math/markdonw code blocks
...
Fixes #2453
2020-02-03 13:28:05 -05:00
Henrik Lissner
a1f6f77ca0
Remove redundant flyspell-mode hook in latex
...
flyspell-mode is already on text-mode-hook
2019-10-24 13:39:03 -04:00
Henrik Lissner
3140ab7337
lang/latex: fix advice name conflict #1849
2019-10-23 22:28:44 -04:00
Henrik Lissner
237d2d3c3a
lang/latex: fix fix for fill-paragraph in latex-mode #1849
2019-10-23 14:14:33 -04:00
Qianchuan Ye
da765bebda
lang/latex: fix rainbow-delimiters-mode
2019-10-22 23:23:53 -04:00
Qianchuan Ye
1e90bc8c14
lang/latex: fix typo
2019-10-22 23:23:41 -04:00
Qianchuan Ye
d52be9de3e
lang/latex: fix loading style files #1910 .
2019-10-17 12:05:43 -04:00
Qianchuan Ye
b0c780b7dd
lang/latex: fix setting variables #1910 .
2019-10-16 15:43:05 -04:00
Henrik Lissner
31c95042c3
lang/latex: fix autofill in \item's #1849
2019-10-03 20:49:04 -04:00
Henrik Lissner
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
Alexander Graul
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
Henrik Lissner
7ec6a32c30
lang/latex: associate .tex with LaTeX-mode
2019-09-26 14:26:47 -04:00
Henrik Lissner
1c05773c39
General, minor refactors & comment revision
2019-09-11 23:41:08 -04:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
fbcb4e6973
Minor refactor across the board
2019-03-04 20:47:26 -05:00
xhcoding
5da216a1c5
Add: sumatrapdf as pdf viewer on Windows
2019-02-24 17:44:06 +08:00
Henrik Lissner
69ed1a4a99
feature/{syntax-checker,spellcheck} -> tools/fly{check,spell}
2019-02-22 00:25:30 -05:00
UndeadKernel
de2e41774f
latex fix: enable spell checking correctly
...
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)`
2019-01-03 13:49:00 +01:00
Henrik Lissner
d6cb0ec5f5
General cleanup & minor refactoring
2018-12-22 04:25:15 -05:00
Henrik Lissner
5e96b42ccc
lang/latex: fix TeX-latex-mode error
...
Caused because use-package is creating an autoload for TeX-latex-mode as
if it were in the tex package, but it's in the latex package, instead.
Since auctex already autoloads TeX-latex-mode, there's no need to set
our own.
2018-12-06 19:07:36 -05:00
Henrik Lissner
752b92570d
lang/latex: defconst -> defvar #955
...
Allow +latex-viewers to be set sooner.
2018-10-12 14:20:45 -04:00
Henrik Lissner
675f4fa821
lang/latex: enable flyspell-mode after local-vars
...
Gives setq hooks and file/directory-local variables the opportunity to
take effect before flyspell activates.
2018-10-06 20:56:18 -04:00
Henrik Lissner
7d3ffdff06
Remove third line in section headers
...
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00