>From 051c3e46a4bd26927ec329548389afaeaab57734 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Sat, 17 Apr 2010 12:50:55 +0100 Subject: [PATCH 2/6] Enable commented code to support darwin system --- tex.el | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tex.el b/tex.el index e9145728..e86244c8 100644 --- a/tex.el +++ b/tex.el @@ -1091,13 +1091,11 @@ (defvar TeX-view-program-list-builtin '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o")) ("dvips and start" "dvips %d -o && start \"\" %f") ("start" "start \"\" %o"))) -;; XXX: We need the advice of a Mac OS X user to configure this -;; correctly and test it. -;; ((eq system-type 'darwin) -;; '(("Preview.app" "open -a Preview.app %o") -;; ("Skim" "open -a Skim.app %o") -;; ("displayline" "displayline %n %o %b") -;; ("open" "open %o"))) + ((eq system-type 'darwin) + '(("Preview.app" "open -a Preview.app %o") + ("Skim" "open -a Skim.app %o") + ("displayline" "displayline %n %o %b") + ("open" "open %o"))) (t `(("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") @@ -1204,12 +1202,10 @@ (defcustom TeX-view-program-selection (output-dvi "Yap") (output-pdf "start") (output-html "start"))) -;; XXX: We need the advice of a Mac OS X user to configure this -;; correctly and test it. -;; ((eq system-type 'darwin) -;; '((output-dvi "open") -;; (output-pdf "open") -;; (output-html "open"))) + ((eq system-type 'darwin) + '((output-dvi "open") + (output-pdf "open") + (output-html "open"))) (t '(((output-dvi style-pstricks) "dvips and gv") (output-dvi "xdvi") -- 1.8.2