|
From: | John Wiegley |
Subject: | Re: carbon emacs on OS X 10.3 (Panther): how to fix environment? |
Date: | Mon, 12 Jan 2004 13:17:18 -0800 |
User-agent: | Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) |
Rob Dickens <address@hidden> writes: > I understand that launching emacs from the Terminal commandline will > give me the correct **environment variables**. Is anyone working on > a fix so that it can be launched from the dock? I use the following in my .emacs (note: it needs my xml-parse.el module, http://www.newartisans.com/johnw/Emacs/xml-parse.el): (when (file-readable-p "~/.MacOSX/environment.plist") (with-temp-buffer (insert-file-contents "~/.MacOSX/environment.plist") (let* ((dict (cdr (assoc "dict" (read-xml))))) (while dict (when (string= "key" (caar dict)) (setenv (car (cdr (car dict))) (car (cdr (cadr dict)))) (message "Setting %s=%s" (car (cdr (car dict))) (car (cdr (cadr dict))))) (setq dict (cddr dict))))) (setq exec-path nil) (dolist (path (nreverse (split-string (getenv "PATH") ":"))) (add-to-list 'exec-path path)))
[Prev in Thread] | Current Thread | [Next in Thread] |