Only load auctex if xelatex is found.
This commit is contained in:
parent
ebe041a552
commit
702e4b45c6
6
init.el
6
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; init.el --- tastytea's Emacs init file.
|
||||||
;;; Time-stamp: <2019-03-30 17:50:46 CET>
|
;;; Time-stamp: <2019-03-30 18:14:19 CET>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; I am using this file with Emacs 26, but most of it will probably work with
|
;;; I am using this file with Emacs 26, but most of it will probably work with
|
||||||
|
@ -658,12 +658,13 @@
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(use-package tex-site
|
(use-package tex-site
|
||||||
|
:if (executable-find "xelatex")
|
||||||
:ensure auctex
|
:ensure auctex
|
||||||
:custom
|
:custom
|
||||||
(TeX-parse-self t) ; Enable parse on load.
|
(TeX-parse-self t) ; Enable parse on load.
|
||||||
(TeX-auto-save t) ; Enable parse on save
|
(TeX-auto-save t) ; Enable parse on save
|
||||||
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
|
(TeX-PDF-mode t) ; PDF mode (rather than DVI-mode)
|
||||||
(TeX-engine 'xetex)
|
(TeX-engine 'xelatex)
|
||||||
;; To use pdf-tools with auctex.
|
;; To use pdf-tools with auctex.
|
||||||
;; https://emacs.stackexchange.com/a/21764/21935
|
;; https://emacs.stackexchange.com/a/21764/21935
|
||||||
(TeX-view-program-selection '((output-pdf "PDF Tools")))
|
(TeX-view-program-selection '((output-pdf "PDF Tools")))
|
||||||
|
@ -677,6 +678,7 @@
|
||||||
|
|
||||||
;; Auto complete for LaTeX.
|
;; Auto complete for LaTeX.
|
||||||
(use-package company-auctex
|
(use-package company-auctex
|
||||||
|
:after auctex
|
||||||
:hook
|
:hook
|
||||||
(LaTeX-mode . company-auctex-init))
|
(LaTeX-mode . company-auctex-init))
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 6224
|
127.0.0.1:51313 2297
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user