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))))