[Top][All Lists]

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

Re: Please help with slime initialisation

From: Alex Kost
Subject: Re: Please help with slime initialisation
Date: Sun, 05 Oct 2014 08:45:18 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Guido Van Hoecke (2014-10-05 00:11 +0400) wrote:

> Hi,
> I added slime to my configuration via package management.
> My load-path
> variable contains the correct load-path:
>   "/Users/guivho/.emacs.d/elpa/slime-20141002.1224"
> This directory contains a slime-autoloads.el ending with a
>   (provide 'slime-autoloads)
> My .emacs has a
>   (require 'slime-autoloads)
> line but it complains that it does
> not find it, unless I explicitely precede this require line with:
>   (add-to-list 'load-path (concat emacsd-dir "elpa/slime-20141002.1224"))
> which adds a second "/Users/guivho/.emacs.d/elpa/slime-20141002.1224" to
> my load-path.
> Why does it only work with this additional entry in the load-path list?

Because Emacs autoloads those "~/.elpa" packages only after loading a
user init file.  See (info "(emacs) Package Installation").

A usual practice is to have:

  (setq package-enable-at-startup nil)

in your .emacs (before requiring anything from elpa dir).

reply via email to

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