Commit graph

116 commits

Author SHA1 Message Date
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
Henrik Lissner
ee4d317293
lang/latex: improve smartparens compatiblity
Also fixes special quote insertion (mentionde in #485)
2018-08-28 01:27:56 +02:00
Henrik Lissner
7c4a353228
lang/latex: remove redundant visual-line-mode hook 2018-08-02 16:32:39 +02:00
Henrik Lissner
14f4e4384a
lang/latex: general refactor 2018-07-30 03:43:43 +02:00
Henrik Lissner
2e6c362df9
lang/latex: replace viewer flags with variable
The +zathura, +skim, +okular and +pdf-tools module flags have been
removed in favor of +latex-viewers, which takes a list of symbols. Its
order determines the priority. The first viewer found on your system is
used.

If none of these viewers are found, it will fall back to
latex-preview-pane.
2018-07-30 03:43:43 +02:00
Henrik Lissner
c96c2aa7fb
Add +latex-symbols-compand-backend delegate #754
If +latex-enable-unicode-math is non-nil, company-math-symbols-unicode
will be used instead of company-math-symbols-latex.
2018-07-30 03:43:42 +02:00
Patrick Elliott
9a23492888 Removed unicode-math setup 2018-07-23 15:47:40 +02:00
Patrick Elliott
037f872a02 Fix final regression (hopefully!) 2018-07-19 12:10:41 +02:00
Patrick Elliott
c502fe6328 Added +unicode-math flag 2018-07-18 17:20:52 +02:00
Patrick Elliott
6b58c8d451 De-tangle company-auctex and company-math
Co-authored-by: Henrik Lissner <henrik@lissner.net>
2018-07-18 16:22:47 +02:00
Patrick Elliott
c5fd541773 Implement @hlissner's suggestions 2018-07-18 15:31:35 +02:00
Patrick Elliott
581536396f Tell emacs how to parse tex files 2018-07-18 14:04:23 +02:00
Patrick Elliott
9174b6c0e4 Stop chktex from producing garbage 2018-07-18 14:03:31 +02:00
Patrick Elliott
fae43bea51 Large refactor using def-package! 2018-07-18 13:38:02 +02:00
Patrick Elliott
3120636a23 This is (probably) no longer necessary 2018-07-18 12:22:22 +02:00
Patrick Elliott
9fc5d9472e Viewers should be loaded after tex 2018-07-18 12:15:55 +02:00
Patrick Elliott
5f14efbc20 Spring-cleaning 2018-07-18 12:12:15 +02:00
Patrick Elliott
944a7dbb4e This no longer applies. 2018-07-18 11:41:12 +02:00
Patrick Elliott
a5f3c03c35 Added warning back in 2018-07-18 11:10:55 +02:00
Patrick Elliott
a09799d73d Skim already configured upstream 2018-07-18 09:35:32 +02:00
Patrick Elliott
ed4f7301ba Removed bibtex dir variable 2018-07-18 09:16:23 +02:00
Patrick Elliott
00322883d7 Company-reftex should be conditional on company 2018-07-13 18:50:10 +02:00
Patrick Elliott
6ba4982bfb LaTeX-math-mode is redundant with completion 2018-07-13 18:45:59 +02:00
Patrick Elliott
babb7821a0 Improved math completion via company-math 2018-07-13 18:01:22 +02:00
Patrick Elliott
8a4e61f0b2 company-reftex takes over citation completion 2018-07-13 12:51:11 +02:00
Patrick Elliott
a64a2e8848 Added company reftex support. 2018-07-13 10:14:10 +02:00
Patrick Elliott
821d1937b8 Revert sp change. 2018-07-13 10:07:02 +02:00
Patrick Elliott
9eccdd5c1b fixed broken hook 2018-07-12 19:52:54 +02:00