guix-devel
[Top][All Lists]
Advanced

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

Re: Emacs load path


From: Taylan Ulrich Bayırlı/Kammer
Subject: Re: Emacs load path
Date: Tue, 29 Dec 2015 02:30:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Alex Kost <address@hidden> writes:

> 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")

If it's important to add the new element to the end of the list, then
one can also tell that to 'add-to-list' via an optional Boolean
argument, like:

    (add-to-list 'load-path "dir" t)

Taylan



reply via email to

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