<div dir="ltr"><div><br>Yes, you can add hook function slime-connected-hook in emacs,for example,<br><br>(defun slime-repl-setup-initial-packages ()<br> (loop for package in '(:ab :project-a :project-b :project-c)<br>
do<br> (when (slime-eval `(cl:if (cl:find-package ,package) t))<br> (slime-repl-set-package package)<br> (return))))<br>(add-hook 'slime-connected-hook 'slime-repl-setup-initial-packages t)<br>
<br></div>Regards,<br>jingtao.<br></div><div class="gmail_extra"><br clear="all"><div>With best regards,jingtao.</div>
<br><br><div class="gmail_quote">On Fri, Mar 22, 2013 at 2:19 PM, z_axis <span dir="ltr"><<a href="mailto:z_axis@163.com" target="_blank">z_axis@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Now i have to call (in-package :foo) after slime-connect ?<br>
<br>
Sincerely!<br>
<br>
<br>
______________________________<u></u>_________________<br>
slime-devel site list<br>
<a href="mailto:slime-devel@common-lisp.net" target="_blank">slime-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/slime-devel" target="_blank">http://common-lisp.net/<u></u>mailman/listinfo/slime-devel</a><br>
</blockquote></div><br></div>