* Please help with slime initialisation
@ 2014-10-04 20:11 Guido Van Hoecke
2014-10-05 4:45 ` Alex Kost
0 siblings, 1 reply; 4+ messages in thread
From: Guido Van Hoecke @ 2014-10-04 20:11 UTC (permalink / raw)
To: help-gnu-emacs
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?
Please advise,
Guido
--
One man's theology is another man's belly laugh.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Please help with slime initialisation
2014-10-04 20:11 Please help with slime initialisation Guido Van Hoecke
@ 2014-10-05 4:45 ` Alex Kost
2014-10-05 7:43 ` Guido Van Hoecke
0 siblings, 1 reply; 4+ messages in thread
From: Alex Kost @ 2014-10-05 4:45 UTC (permalink / raw)
To: Guido Van Hoecke; +Cc: help-gnu-emacs
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).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Please help with slime initialisation
2014-10-05 4:45 ` Alex Kost
@ 2014-10-05 7:43 ` Guido Van Hoecke
0 siblings, 0 replies; 4+ messages in thread
From: Guido Van Hoecke @ 2014-10-05 7:43 UTC (permalink / raw)
To: Alex Kost; +Cc: help-gnu-emacs
Hi Alex,
Alex Kost <alezost@gmail.com> writes:
> 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).
Thanks Alex.
This is indeed very clearly described in info.
Should have read this before causing noise.
So sorry.
Guido
--
Ain't no right way to do a wrong thing.
-- The Mad Dogtender
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.10444.1412453491.1147.help-gnu-emacs@gnu.org>]
* Re: Please help with slime initialisation
[not found] <mailman.10444.1412453491.1147.help-gnu-emacs@gnu.org>
@ 2014-10-08 5:38 ` Tu, Do
0 siblings, 0 replies; 4+ messages in thread
From: Tu, Do @ 2014-10-08 5:38 UTC (permalink / raw)
To: help-gnu-emacs
Vào 03:11:07 UTC+7 Chủ nhật, ngày 05 tháng mười năm 2014, guivho đã viết:
> 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?
>
>
>
> Please advise,
>
>
>
>
>
> Guido
>
>
>
> --
>
> One man's theology is another man's belly laugh.
You may one to checkout this excellent SO answer: http://stackoverflow.com/a/1101605/496700
It is the answer that helped me to easily Setup Common Lisp environment when I first started.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-08 5:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-04 20:11 Please help with slime initialisation Guido Van Hoecke
2014-10-05 4:45 ` Alex Kost
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
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.