switch to different setup for LaTeX

Uses AUCTex and Atril instead of LaTeX-preview-pane, as this is much
more flexible
This commit is contained in:
Adam Goldsmith 2015-09-13 20:34:21 -04:00
parent 252a6e871b
commit 992f077bd8

15
.emacs
View File

@ -1,3 +1,5 @@
(setq gc-cons-threshold 100000000)
;; indentation ;; indentation
(setq c-default-style "linux" (setq c-default-style "linux"
c-basic-offset 4 c-basic-offset 4
@ -133,6 +135,15 @@
(use-package todotxt-mode (use-package todotxt-mode
:config :config
(setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt"))) (setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt")))
(use-package latex-preview-pane (use-package tex-site
:config :config
(latex-preview-pane-enable)) (setq TeX-view-program-list '(("Atril" "/usr/bin/atril %o"))
TeX-view-program-selection '((output-pdf "Atril")))
(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))
(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))))