[slime-devel] Can i make slime enter the specified package once slime-connect successfully ?
Jingtao Xu
jingtaozf at gmail.com
Fri Mar 22 07:12:25 UTC 2013
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>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20130322/82884a8a/attachment.html>
More information about the slime-devel
mailing list