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