[Fix #484] Set OS X specific latex settings conditionally

This commit is contained in:
Bozhidar Batsov 2014-02-06 10:36:01 +02:00
parent 1bb8852b0f
commit 8a3e01cd32

View file

@ -44,17 +44,17 @@
;; use pdflatex
(setq TeX-PDF-mode t)
;; sensible defaults for OS X, other OSes should be covered out-of-the-box
(when (eq system-type 'darwin)
(setq TeX-view-program-selection
'((output-dvi "DVI Viewer")
(output-pdf "PDF Viewer")
(output-html "HTML Viewer")))
;; this section is good for OS X only
;; TODO add sensible defaults for Linux/Windows
(setq TeX-view-program-list
'(("DVI Viewer" "open %o")
("PDF Viewer" "open %o")
("HTML Viewer" "open %o")))
("HTML Viewer" "open %o"))))
(defun prelude-latex-mode-defaults ()
(turn-on-auto-fill)