I'm running Aquamacs + Slime and I'm able to start Slime automatically when I start Aquamacs. However, when I try to load a lisp file after that I keep getting various errors depending on how I'm trying to load the file. Here's my preferences.el
(setq inferior-lisp-program "~/ccl/dx86cl64"
slime-startup-animation nil)
(require 'slime)
(split-window-horizontally)
(other-window 1)
(slime)
(eval-after-load "slime"
'(progn
(slime-compile-and-load-file "/Users/xxxxx/xxxxx/load-seq.lisp")
))
I get the following error
error: Buffer *inferior-lisp* is not associated with a file.
I've tried other functions including load
compile-and-load
and slime-load-file
and got the following errors respectively...
Invalid read syntax: #
Symbol's function definition is void: compile-and-load
error: Not connected.
The lisp file loads (and compiles) fine when I do (load "/Users/xxxxx/xxxxx/load-seq.lisp")
from the slime REPL. It seems like when I put it in Preferences.el, it does not wait for slime to load even though I'm using eval-after-load
.