Created
August 21, 2018 04:33
-
-
Save deviantfero/93ca8894fe7cffe7ffe09b85a3798ecc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; OPEN MUPDF WITH DOCUMENT | |
;;;; CORRELATE MODE ASKS FOR THE MAIN FILE IN EACH NEW FILE :) | |
(use-package tex | |
:ensure auctex | |
:config | |
(use-package latex | |
:config | |
(setq TeX-auto-save t) | |
(setq TeX-parse-self t) | |
(setq-default TeX-master nil) | |
(setq-default TeX-engine "xetex") | |
(setq-default TeX-save-query nil) | |
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode) | |
(add-hook 'LaTeX-mode-hook 'flyspell-mode) | |
(add-to-list 'TeX-view-program-list | |
'("my mupdf" ("mupdf" " %o" (mode-io-correlate " %(outpage)"))) | |
(setcdr (assq 'output-pdf TeX-view-program-selection) '("my mupdf"))))) | |
;;;; SETTING UP DICTIONARY | |
(setq ispell-program-name (executable-find "hunspell") | |
ispell-local-dictionary-alist | |
'(("es_ES" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8) | |
("en_EN" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8)) | |
ispell-dictionary "es_ES") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment