From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Bernd Haug <bernd.haug@xaidat.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>, chris@meliser.co.uk
Subject: Re: Org-Mode and Mac OS X advice
Date: Thu, 26 Mar 2015 14:57:40 +0100 [thread overview]
Message-ID: <m2twx7amjv.fsf@ren102r.vpn.inria.fr> (raw)
In-Reply-To: <CAKjxQA3uf6zcg4LOqvUmZjxcQfesQcbiTZmjnLZ40e1zEMKaYg@mail.gmail.com> (Bernd Haug's message of "Thu, 26 Mar 2015 14:50:15 +0100")
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
On 2015-03-26 14:50, Bernd Haug <bernd.haug@xaidat.com> writes:
> Alternatively:
>
> • Configure your path in your user's launchd config so that the whole
> session has LaTeX in your path
> • Modify your shell environment and just launch Emacs from the shell.
> 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 the 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 "=")))
(setenv (car var_val) (cadr var_val)))) vars)
(setq exec-path
(append
(split-string-and-unquote (getenv "PATH") ":")
exec-path)))
#+end_src
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
next prev parent reply other threads:[~2015-03-26 13:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 13:18 Org-Mode and Mac OS X advice Chris Willard
2015-03-26 13:39 ` Alan Schmitt
2015-03-26 13:41 ` John Kitchin
2015-03-26 13:50 ` Bernd Haug
2015-03-26 13:57 ` Alan Schmitt [this message]
2015-03-28 16:26 ` Rick Frankel
2015-03-30 10:31 ` Mike McLean
2015-03-26 16:13 ` Grant Rettke
2015-03-26 16:19 ` Bill White
2015-03-27 5:39 ` Xavier Maillard
2015-03-26 21:13 ` David Mann
2015-03-27 12:07 ` Chris Willard
2015-03-28 3:02 ` Mike McLean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2twx7amjv.fsf@ren102r.vpn.inria.fr \
--to=alan.schmitt@polytechnique.org \
--cc=bernd.haug@xaidat.com \
--cc=chris@meliser.co.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).