guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs load path


From: Alex Kost
Subject: Re: Emacs load path
Date: Wed, 30 Dec 2015 21:55:52 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Federico Beffa (2015-12-30 15:16 +0300) wrote:

> On Mon, Dec 28, 2015 at 11:15 PM, Alex Kost <address@hidden> wrote:
>> Federico Beffa (2015-12-28 01:16 +0300) wrote:
>>
>> [...]
>>> 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") 
>>> load-path))
>>
>> This is very unusual.  Why 'append' instead of 'cons'?  Anyway an
>> idiomatic way is: (add-to-list 'load-path "dir")
>
> Alex, this isn't useful. Obviously it's coming from my .emacs file
> where I add more than one directory... But this is looking at trees
> for the forest...

Thanks for clarifying.  I said it's unusual, because in this example you
added just a *single* directory.  After sending the message I guessed
that you probably uses it for adding several elements to the list (I do
absolutely the same for `auto-mode-alist' variable).

> A useful approach would be to fix the problem such that if a user
> installs emacs with guix the above steps happen automatically without
> any user intervention.

Yeah, it would probably be a good default, but only if this default can
be changed.  I mean if I didn't install emacs packages with guix, I would
like to avoid loading an additional code for that.  In GuixSD I can do
it with "export EMACSLOADPATH=", so if our Emacs package will somehow
"automagically" look at "~/.guix-profile/share/emacs/site-lisp/guix.d/…"
directories, I want to have a way to disable this feature.

-- 
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]