* Tom Russ <e0c2d025-2bf6-4425-99b8-8de8440ebf3cn @
googlegroups.com> :
Wrote on Thu, 9 Dec 2021 10:52:15 -0800 (PST):
> On Thursday, December 9, 2021 at 9:05:03 AM UTC-8, michael???@
gmail.com wrote:
>> I am using SLIME & SBCL on a remote host. I essentially use
>> Emacs/Slime as a client to connect to my Lisp system, using M-x
>> slime-connect.
>>
>> I'd like to configure things so that when I connect via SLIME, I can
>> run my own function in the remote Lisp before getting a REPL prompt.
>>
>> Is that possible?
>
> Is this something you could do with a lisp init file that the remote
> SBCL job executes on startup?
There is such a file - I think it is ~/.swank.lisp - it is loaded when
swank is initialized and called through "swank-loader.lisp"
details are in the info-manual under "Customization" "Lisp Side"
For sly it is ~/.slynk.lisp - and I think this was extended to work even
if you loaded sly through some other means (other than "slynk-loader")