4

When we start slime, it starts in CL-USER by default. Since I work with a particular package very frequently, I want to automatically in-package into that package on slime startup. i.e. I want save myself the trouble of doing the below:

CL-USER> (ql:quickload :my-package)
CL-USER> (in-package my-package)
MY-PACKAGE>

I tried putting the following code in my ccl-init.lisp file but the in-package did not work:

(ql:quickload :my-package)
(in-package my-package)
RAbraham
  • 5,956
  • 8
  • 45
  • 80

1 Answers1

6

You probably could do something with slime-repl-mode-hook

But I think it would be better to use the slime-sync-package-and-default-directory which is bound to C-c ~ and syncs your REPL to the package of your buffer.

sigjuice
  • 28,661
  • 12
  • 68
  • 93
PuercoPop
  • 6,707
  • 4
  • 30
  • 40