[Fix #484] Set OS X specific latex settings conditionally
This commit is contained in:
parent
1bb8852b0f
commit
8a3e01cd32
1 changed files with 10 additions and 10 deletions
|
@ -44,17 +44,17 @@
|
|||
;; use pdflatex
|
||||
(setq TeX-PDF-mode t)
|
||||
|
||||
(setq TeX-view-program-selection
|
||||
;; 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
|
||||
(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)
|
||||
|
|
Loading…
Reference in a new issue