diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -135,6 +135,31 @@ (setq beacon-color "OrangeRed") (beacon-mode 1)) +;; AUCTeX +(use-package tex + :ensure auctex + :defer t + :custom + (TeX-auto-save t) + (TeX-parse-self t) + (TeX-master nil) + ;; to use pdfview with auctex + (TeX-view-program-selection '((output-pdf "pdf-tools")) + TeX-source-correlate-start-server t) + (TeX-view-program-list '(("pdf-tools" "TeX-pdf-tools-sync-view"))) + (TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) + :hook + (LaTeX-mode . (lambda () + (turn-on-reftex) + (setq reftex-plug-into-AUCTeX t) + (reftex-isearch-minor-mode) + (setq TeX-PDF-mode t) + (setq TeX-source-correlate-method 'synctex) + (setq TeX-source-correlate-start-server t))) + :config + (when (version< emacs-version "26") + (add-hook LaTeX-mode-hook #'display-line-numbers-mode))) + ;; kill other buffers (defun kill-other-buffers () "Kill all other buffers." |