From cc72d492aa154f4e451715449b00598cf5a2fa2d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 18 Sep 2015 11:23:42 -0400 Subject: [PATCH] Switch to using evince instead of Atril This allows for Forward and Backwards search, and is easier to configure --- .emacs.d/init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6dd6485..1010506 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -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))))