emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mike McLean <mike.mclean@pobox.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>,
	Bernd Haug <bernd.haug@xaidat.com>,
	emacs-orgmode <emacs-orgmode@gnu.org>,
	chris@meliser.co.uk
Subject: Re: Org-Mode and Mac OS X advice
Date: Mon, 30 Mar 2015 06:31:49 -0400	[thread overview]
Message-ID: <CANid5Q61Dgc=aeh-h6Cexb_ZEMHH6_brQv=tWrMzG=Crb-kbzQ@mail.gmail.com> (raw)
In-Reply-To: <20150328162632.GA71345@eyeBook.home>

[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]

On Sat, Mar 28, 2015 at 12:26 PM, Rick Frankel <rick@rickster.com> wrote:

> 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.
>

Which is the way I do it also. I have the following in my emacs-init.org
file (that Tangles to my actual Emacs init file)

#+begin_src emacs-lisp :tangle yes
  (add-to-list 'el-get-sources '(:name exec-path-from-shell))
  (let ((exec-path-from-shell.el
"~/.emacs.d/el-get/exec-path-from-shell/exec-path-from-shell.el"))
    (when (file-exists-p exec-path-from-shell.el)
      (load exec-path-from-shell.el)
      (require 'exec-path-from-shell)
      (when (memq window-system '(mac ns))
        (exec-path-from-shell-initialize))))
#+end_src





> rick
>
>

[-- Attachment #2: Type: text/html, Size: 2702 bytes --]

  reply	other threads:[~2015-03-30 10:32 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
2015-03-30 10:31       ` Mike McLean [this message]
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='CANid5Q61Dgc=aeh-h6Cexb_ZEMHH6_brQv=tWrMzG=Crb-kbzQ@mail.gmail.com' \
    --to=mike.mclean@pobox.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).