From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Org-Mode and Mac OS X advice Date: Thu, 26 Mar 2015 14:57:40 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yb8IC-00046Y-V1 for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 09:57:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yb8I8-0004DW-FS for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 09:57:52 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:60625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yb8I8-0004Cv-9v for emacs-orgmode@gnu.org; Thu, 26 Mar 2015 09:57:48 -0400 In-Reply-To: (Bernd Haug's message of "Thu, 26 Mar 2015 14:50:15 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernd Haug Cc: emacs-orgmode , chris@meliser.co.uk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-03-26 14:50, Bernd Haug writes: > Alternatively: > > =E2=80=A2 Configure your path in your user's launchd config so that the w= hole > session has LaTeX in your path > =E2=80=A2 Modify your shell environment and just launch Emacs from the sh= ell. > The binary would then be /Applications/Emacs.app/Contents/MacOS/Emacs I'm using this nice trick (passed to me by a colleague) that sets the environment variables and path to be the same in zsh and emacs (launched From=20the GUI). #+begin_src emacs-lisp (let ((vars (split-string-and-unquote (shell-command-to-string ". ~/.zshrc;= export") "\n"))) (mapcar (lambda (X) (let ((var_val (split-string-and-unquote X "=3D"))) (setenv (car var_val) (cadr var_val)))) vars) (setq exec-path=20 (append (split-string-and-unquote (getenv "PATH") ":") exec-path))) #+end_src Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJVFBBZAAoJEAQNCjtO0uXHO+UH/R6BpummgAv+jt2BlaXOPv9s MiVTmo4WGc2zu/3o9piGDh//zFEzVOEK5+n4LxUwIYIktByt5NCfUk8xqyN4WMVl ow5Jt42vOdvgAB1qbxg0VqzAzZ/1rAUgu2NdpxhkYBVz0QOOYJS+TSQnQdLGxWUt fXY+NjjOHfM8XyD66x4vfY2twU1zmRz/KqyBIMs+wf0lows2Qnl+NbiKSo6KXVUJ 49BnZLb4JjwFrhbl/deHsqh+Lm6FJmz639eaRvfRUF8MSqLbVbJWZP3QkMKlnzP+ KF7JNlGBnSzL88k1Mk/5gW6gFhnmtiHGFCnCIx7TCU/MeirGlwIyxaXAiTi3bKE= =XQn1 -----END PGP SIGNATURE----- --=-=-=--