[OS X TeX] Paths and emacs
Enrico Franconi
franconi at inf.unibz.it
Fri Nov 26 15:52:39 CET 2004
Hi all.
I'm finalising the new release of Enhanced Carbon Emacs, and I found a
sort of universal but simple way to solve the path problem in emacs -
without any other dirty trick. Please experiment with it and tell me
whether it works, so that I can include it in the distribution.
(defvar shell-bin-exec-path
'("/usr/local/teTeX/bin/powerpc-apple-darwin-current/"
"/sw/bin" "/sw/sbin" "/usr/libexec" "/Developer/Tools"
"/usr/local/bin" "/usr/local/sbin" "/bin" "/sbin"
"/usr/bin" "/usr/sbin" "/usr/X11R6/bin")
"The paths where binaries can be found")
(setenv "PATH"
(concat (getenv "PATH")
(let ((result ""))
(dolist (path (reverse shell-bin-exec-path))
(setq result (concat ":" path result)))
(concat result ":" emacs-bin-path))))
cheers
--e.
Enrico Franconi - franconi at inf.unibz.it
Free University of Bozen-Bolzano - http://www.inf.unibz.it/~franconi/
Faculty of Computer Science - Phone: (+39) 0471-016-120
I-39100 Bozen-Bolzano BZ, Italy - Fax: (+39) 0471-016-129
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list