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