[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
|
;; use pdflatex
|
||||||
(setq TeX-PDF-mode t)
|
(setq TeX-PDF-mode t)
|
||||||
|
|
||||||
(setq TeX-view-program-selection
|
;; sensible defaults for OS X, other OSes should be covered out-of-the-box
|
||||||
'((output-dvi "DVI Viewer")
|
(when (eq system-type 'darwin)
|
||||||
(output-pdf "PDF Viewer")
|
(setq TeX-view-program-selection
|
||||||
(output-html "HTML Viewer")))
|
'((output-dvi "DVI Viewer")
|
||||||
|
(output-pdf "PDF Viewer")
|
||||||
|
(output-html "HTML Viewer")))
|
||||||
|
|
||||||
;; this section is good for OS X only
|
(setq TeX-view-program-list
|
||||||
;; TODO add sensible defaults for Linux/Windows
|
'(("DVI Viewer" "open %o")
|
||||||
(setq TeX-view-program-list
|
("PDF Viewer" "open %o")
|
||||||
'(("DVI Viewer" "open %o")
|
("HTML Viewer" "open %o"))))
|
||||||
("PDF Viewer" "open %o")
|
|
||||||
("HTML Viewer" "open %o")))
|
|
||||||
|
|
||||||
(defun prelude-latex-mode-defaults ()
|
(defun prelude-latex-mode-defaults ()
|
||||||
(turn-on-auto-fill)
|
(turn-on-auto-fill)
|
||||||
|
|
Loading…
Reference in a new issue