[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)
|
||||||
|
|
||||||
|
;; sensible defaults for OS X, other OSes should be covered out-of-the-box
|
||||||
|
(when (eq system-type 'darwin)
|
||||||
(setq TeX-view-program-selection
|
(setq TeX-view-program-selection
|
||||||
'((output-dvi "DVI Viewer")
|
'((output-dvi "DVI Viewer")
|
||||||
(output-pdf "PDF Viewer")
|
(output-pdf "PDF Viewer")
|
||||||
(output-html "HTML 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")
|
'(("DVI Viewer" "open %o")
|
||||||
("PDF Viewer" "open %o")
|
("PDF Viewer" "open %o")
|
||||||
("HTML 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