Switch to using evince instead of Atril

This allows for Forward and Backwards search, and is easier to configure
This commit is contained in:
Adam Goldsmith 2015-09-18 11:23:42 -04:00
parent af64044b5f
commit cc72d492aa

View File

@ -137,14 +137,14 @@
(setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt")))
(use-package tex-site
:config
(setq TeX-view-program-list '(("Atril" "/usr/bin/atril %o"))
TeX-view-program-selection '((output-pdf "Atril")))
(setq TeX-command-extra-options "-shell-escape")
(defun my-tex ()
"Saves the current buffer and runs LaTeX, all with no prompts or further interaction."
(interactive)
(save-buffer)
(TeX-command "LaTeX" 'TeX-master-file -1))
(setq TeX-command-extra-options "-shell-escape")
(add-hook 'LaTeX-mode-hook
(lambda () (local-set-key (kbd "C-z") 'my-tex)
(local-set-key (kbd "C-c e") 'tex-close-latex-block))))
(local-set-key (kbd "C-c e") 'tex-close-latex-block)
(TeX-source-correlate-mode))))