all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Guido Van Hoecke <guivho@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Please help with slime initialisation
Date: Sun, 05 Oct 2014 08:45:18 +0400	[thread overview]
Message-ID: <87sij3jfa9.fsf@gmail.com> (raw)
In-Reply-To: <m2d2a77fz8.fsf@gmail.com> (Guido Van Hoecke's message of "Sat, 04 Oct 2014 22:11:07 +0200")

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)
  (package-initialize)

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



  reply	other threads:[~2014-10-05  4:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04 20:11 Please help with slime initialisation Guido Van Hoecke
2014-10-05  4:45 ` Alex Kost [this message]
2014-10-05  7:43   ` Guido Van Hoecke
     [not found] <mailman.10444.1412453491.1147.help-gnu-emacs@gnu.org>
2014-10-08  5:38 ` Tu, Do

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sij3jfa9.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guivho@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.