Commit graph

116 commits

Author SHA1 Message Date
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
9653185478
lang/latex: fix PDF Tools viewer on MacOS 2018-08-11 01:59:37 +02:00
Henrik Lissner
7c4a353228
lang/latex: remove redundant visual-line-mode hook 2018-08-02 16:32:39 +02:00
Henrik Lissner
128eb611e0
lang/latex: remove +preview-pane flag
Reported by @UndeadKernel
2018-08-02 16:15:10 +02:00
Henrik Lissner
14816ef173
lang/latex: fix detection for other viewers
Incorrect use of cl-block/cl-return meant latex-preview-pane would
always be used as the default pdf viewer.

Reported by @UndeadKernel
2018-08-02 16:12:53 +02:00
Henrik Lissner
cf4ea445a1
lang/latex: don't reverse +latex-viewers
This incorrectly reversed the priority ordering of +latex-viewers. This
is an artifact from a rejected approach at short-circuiting
+latex-viewer, which was replaced with cl-block->cl-return.

Reported by @UndeadKernel
2018-08-02 15:48:32 +02:00
Henrik Lissner
cbc59f9333
Appease the byte-compiler 2018-07-30 12:10:11 +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
189ff349cc Merge branch 'latexRefactor' of https://github.com/patrl/doom-emacs into latexRefactor 2018-07-23 15:48:23 +02:00
Patrick Elliott
9a23492888 Removed unicode-math setup 2018-07-23 15:47:40 +02:00
Henrik Lissner
66679d2f7b
Remove (ivy|helm)-bibtex def-package's
ivy-bibtex and helm-bibtex are autoloaded by their respective packages' autoloads files, so their def-package! blocks are unnecessary.
2018-07-19 15:44:23 +02:00
Henrik Lissner
5d361534ce
Move set-company-backend! into reftex config
Since the company-reftex config doesn't do anything else, and set-company-backend! is an autodef function, it will no-op if :completion company isn't enabled.
2018-07-19 15:43:30 +02:00
Patrick Elliott
037f872a02 Fix final regression (hopefully!) 2018-07-19 12:10:41 +02:00
Patrick Elliott
eeb10ae6cd Put comment in right place 2018-07-18 17:25:27 +02:00
Patrick Elliott
c502fe6328 Added +unicode-math flag 2018-07-18 17:20:52 +02:00
Patrick Elliott
f497d1bf0d Fix regression 2018-07-18 16:59:15 +02:00
Patrick Elliott
c1381d7747 Defer company-reftex 2018-07-18 16:58:26 +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
03e7d1a66c Sort entries and add parencite
Co-authored by: @UndeadKernel
2018-07-18 15:40:09 +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
0aa15c1622 simplify hook 2018-07-18 13:39:30 +02:00
Patrick Elliott
6e67e5b3e4 simplify reftex declaration 2018-07-18 13:39:15 +02:00
Patrick Elliott
e7465018fc This shouldn't be tied to pdf-tools 2018-07-18 13:38:48 +02:00
Patrick Elliott
fae43bea51 Large refactor using def-package! 2018-07-18 13:38:02 +02:00
Patrick Elliott
96bcff1c02 Simplify latexmk setup 2018-07-18 13:37:49 +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
39e03f4cf1 Move viewer setup into different file 2018-07-18 12:12:04 +02:00
Patrick Elliott
dc40fa36d3 Move referencing setup into different file 2018-07-18 12:11:53 +02:00
Patrick Elliott
b6c3d5309f Move preview-pane setup into seperate file 2018-07-18 12:11:20 +02:00
Patrick Elliott
af7450cd0e Move latexmk setup into seperate file 2018-07-18 12:10:58 +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
Patrick Elliott
c93c595ba3 reformat 2018-07-12 18:46:54 +02:00
Patrick Elliott
b06fe0dde2 Made company-auctex more concise 2018-07-12 18:44:18 +02:00
Patrick Elliott
0edd401539 This is redundant given global pdf mode 2018-07-12 18:35:26 +02:00