[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] pdflatex not found?
From: |
Alan Schmitt |
Subject: |
Re: [O] pdflatex not found? |
Date: |
Wed, 28 Oct 2015 13:40:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
On 2015-10-27 17:06, "Cook, Malcolm" <address@hidden> writes:
>>
> > John Kitchin <address@hidden> writes:
> >
> > > This reminds me that I think I have this problem unless I open Emacs
> from a
> > > command line.
> >
> > Yup - this is one way of circumvent the problem: by starting emacs from
> > the command line.
>
> And, just to chime in late in the conversation, if your emacs was installed as
> an mac application using, say, http://emacsformacosx.com/ then you can start
> it from the command line as:
>
> open -a /Applications/path/to/emacs
>
> and get the environment variables you expect...
An alternative, that seems to be cross platform, is to populate
variables when emacs start. This is what I do here:
#+begin_src emacs-lisp
;; **** fetch env variables from zshrc
(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
Athmospheric CO₂ (Updated October 26, 2015, Mauna Loa Obs.): 398.51 ppm
signature.asc
Description: PGP signature
- Re: [O] pdflatex not found?, (continued)
- Re: [O] pdflatex not found?, Peter Davis, 2015/10/27
- Re: [O] pdflatex not found?, Fatma Başak Aydemir, 2015/10/27
- Re: [O] pdflatex not found?, Nick Dokos, 2015/10/27
- Re: [O] pdflatex not found?, Rainer M Krug, 2015/10/27
- Re: [O] pdflatex not found?, John Kitchin, 2015/10/27
- Re: [O] pdflatex not found?, Rainer M Krug, 2015/10/27
- Re: [O] pdflatex not found?, Cook, Malcolm, 2015/10/27
- Re: [O] pdflatex not found?,
Alan Schmitt <=
- Re: [O] pdflatex not found?, Rainer M Krug, 2015/10/27
- Re: [O] pdflatex not found?, Nick Dokos, 2015/10/27
- Re: [O] pdflatex not found?, Rainer M Krug, 2015/10/27
- Re: [O] pdflatex not found?, Peter Davis, 2015/10/27
- Re: [O] pdflatex not found?, Nick Dokos, 2015/10/27
- Re: [O] pdflatex not found?, Peter Davis, 2015/10/27
- Re: [O] pdflatex not found?, Rainer M Krug, 2015/10/27
- Re: [O] pdflatex not found?, Nick Dokos, 2015/10/27
- Re: [O] pdflatex not found?, Rainer M Krug, 2015/10/27
- Re: [O] pdflatex not found?, Peter Davis, 2015/10/27