[slime-devel] Can i make slime enter the specified package once slime-connect successfully ?

z_axis z_axis at 163.com
Fri Mar 22 23:31:30 UTC 2013


It works great! thx

在 Fri, 22 Mar 2013 15:12:25 +0800,Jingtao Xu <jingtaozf at gmail.com> 写道:

> Yes, you can add hook function slime-connected-hook in emacs,for example,
>
> (defun slime-repl-setup-initial-packages ()
>   (loop for package in '(:ab :project-a :project-b :project-c)
>        do
>        (when (slime-eval `(cl:if (cl:find-package ,package) t))
>          (slime-repl-set-package package)
>          (return))))
> (add-hook 'slime-connected-hook 'slime-repl-setup-initial-packages t)
>
> Regards,
> jingtao.
>
> With best regards,jingtao.
>
>
> On Fri, Mar 22, 2013 at 2:19 PM, z_axis <z_axis at 163.com> wrote:
>
>> Now i have to call (in-package :foo) after  slime-connect ?
>>
>> Sincerely!
>>
>>
>> ______________________________**_________________
>> slime-devel site list
>> slime-devel at common-lisp.net
>> http://common-lisp.net/**mailman/listinfo/slime-devel<http://common-lisp.net/mailman/listinfo/slime-devel>
>>


-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/





More information about the slime-devel mailing list