Hi all,
This is my first post, so be gentle with me :)
I'm trying to configure emacs-gtk and sbcl to work with sbc. This is
my .emacs file:
(add-to-list 'load-path "/usr/lib/sbcl/asdf/")
(add-to-list 'load-path "/usr/lib/sbcl/asdf-install/")
(add-to-list 'load-path "/opt/slime-2.0/")
(require 'slime)
(setq inferior-lisp-program "/usr/bin/sbcl")
(slime)
(require 'asdf)
(require 'asdf-install)
But when I start emacs-gtk, it gives me a 2 sec warning with something
like "cannot open load file: asdf". But the strange thing is that if I
do (require 'asdf) or (require 'asdf-install) from slime or from the
sbcl shell, it all works.
The full 'stack trace' of emacs-gtk running with --debug-init is here:
Debugger entered--Lisp error: (file-error "Cannot open load file"
"asdf")
require(asdf)
eval-buffer(#<buffer *load*> nil "/home/mping/.emacs" nil t) ;
Reading at buffer position 231
load-with-code-conversion("/home/mping/.emacs" "/home/mping/.emacs"
t t)
load("~/.emacs" t t)
You probably guessed I come from a C#/Java background...
On Sat, 01 Dec 2007 15:43:53 -0800, Miguel Ping wrote:
> This is my
> .emacs file:
...
> (require 'asdf)
> (require 'asdf-install)
You're supposed to (require 'asdf) etc in your inferior lisp, not in
emacs lisp.
Add those lines to your .sbclrc instead.
Joost.
Thanks, that did the trick.
On Dec 1, 11:52 pm, Joost Diepenmaat <·····@zeekat.nl> wrote:
> On Sat, 01 Dec 2007 15:43:53 -0800, Miguel Ping wrote:
> > This is my
> > .emacs file:
>
> ...
>
> > (require 'asdf)
> > (require 'asdf-install)
>
> You're supposed to (require 'asdf) etc in your inferior lisp, not in
> emacs lisp.
>
> Add those lines to your .sbclrc instead.
>
> Joost.