emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
	Bernd Haug <bernd.haug@xaidat.com>,
	chris@meliser.co.uk
Subject: Re: Org-Mode and Mac OS X advice
Date: Sat, 28 Mar 2015 12:26:32 -0400	[thread overview]
Message-ID: <20150328162632.GA71345@eyeBook.home> (raw)
In-Reply-To: <m2twx7amjv.fsf@ren102r.vpn.inria.fr>

On Thu, Mar 26, 2015 at 02:57:40PM +0100, Alan Schmitt wrote:
> On 2015-03-26 14:50, Bernd Haug <bernd.haug@xaidat.com> writes:
>
> 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

You could also use the `exec-path-from-shell' package, which will set a
specified list of variables (defaults to MANPATH, PATH) from the shell.

rick

  reply	other threads:[~2015-03-28 16:26 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
2015-03-28 16:26     ` Rick Frankel [this message]
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=20150328162632.GA71345@eyeBook.home \
    --to=rick@rickster.com \
    --cc=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).