Only install auctex if xelatex is found.

This commit is contained in:
tastytea 2019-04-03 14:21:56 +02:00
parent ca12f55334
commit 29b6f5502f

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-04-02 15:16:18 CEST> ;;; Time-stamp: <2019-04-03 14:21:51 CEST>
;;; 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
@ -676,8 +676,8 @@
(find-file . auto-insert)) (find-file . auto-insert))
;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package tex-site (if (executable-find "xelatex")
:if (executable-find "xelatex") (use-package tex-site
:ensure auctex :ensure auctex
:custom :custom
(TeX-parse-self t) ; Enable parse on load. (TeX-parse-self t) ; Enable parse on load.
@ -693,7 +693,7 @@
:config :config
;; To have the buffer refresh after compilation. ;; To have the buffer refresh after compilation.
(add-hook 'TeX-after-compilation-finished-functions (add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)) #'TeX-revert-document-buffer)))
;; Auto complete for LaTeX. ;; Auto complete for LaTeX.
(use-package company-auctex (use-package company-auctex