[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interference between package and exec-path values ?
From: |
Jean-Christophe Helary |
Subject: |
Re: interference between package and exec-path values ? |
Date: |
Sat, 20 Oct 2018 02:36:40 +0900 |
Yuri,
Thank you for the explanation.
You're right, but still, I had that faulty line for a while and that did not
keep package from installing files... But that's ok, I guess now that I know
how to make that work as before.
Jean-Christophe
> On Oct 20, 2018, at 2:24, Yuri Khan <yurivkhan@gmail.com> wrote:
>
> On Sat, Oct 20, 2018 at 12:15 AM Jean-Christophe Helary
> <brandelune@gmail.com> wrote:
>
>> I am finding that having this line in my .emacs.el:
>>
>> (setq exec-path (append "/usr/local/bin/" exec-path))
>>
>> interferes with package to the point that I can't install anything.
>
> ‘append’ accepts sequences as arguments. You are passing a string as
> the first sequence, so it gets shredded to its constituent characters
> and these become elements of the resulting list.
>
> You probably wanted:
>
> (setq exec-path (append '("/usr/local/bin/") exec-path))
>
> or:
>
> (add-to-list 'exec-path "/usr/local/bin/")
>
> or possibly nothing, because the default value of exec-path derives
> its value from your PATH environment variable and that should already
> include /usr/local/bin.
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune