[CM] Setting up snd/emacs

Kenneth Flak kennethflak at protonmail.com
Fri Jul 5 12:10:10 PDT 2024


"Kjetil Matheussen" <k.s.matheussen at gmail.com> writes:

Very nice tip indeed. Will definitely look into it!

Best,
Kenneth

> Just a small tip:
>
> I'm using the s7webserver (included with s7) to communicate with 
> snd from emacs.
> This way you don't have to run the s7 process directly in emacs.
> You just communicate back and forth between s7 and emacs on a 
> socket.
>
> If s7 crashes or hangs, emacs does not crash or hang, and vice 
> versa.
>
> You can also restart s7 at any time without having to restart 
> scheme in emacs.
>
> My .emacs looks has these two lines:
> (setq inferior-scheme-program "/home/kjetil/bin/scheme")
> (setq scheme-program-name  "/home/kjetil/bin/scheme")
>
> And /home/kjetil/bin/scheme looks like this:
> lrwxrwxrwx. 1 kjetil kjetil 47 Jul  5 12:27 scheme ->
> /home/kjetil/s7/s7webserver/s7webserver_repl.py
>
> (make sure you use python2 for the script, python3 does not seem 
> to work)
>
> To compile up s7webserver, this should be enough:
> cd s7webserver
> make
>
>
>
> On Fri, Jul 5, 2024 at 11:31 AM Kenneth Flak 
> <kennethflak at protonmail.com> wrote:
>>
>>
>> Hi,
>>
>> I'm somewhat belatedly starting to realize the absolute
>> awesomeness of emacs, and I'm now trying to get snd working 
>> with
>> it... However, my initial attempts aren't workind very well..
>>
>> This is what I have in my init.el right now, and I was hoping 
>> that
>> it would do something magical whenever I open a .csm file (as
>> suggested in the docs)
>>
>> (load-file "~/dots/emacs/inf-snd.el")
>> (set-default 'auto-mode-alist
>>              (append '(("\\.rbs$" . snd-ruby-mode)
>>                     ("\\.cms$" . snd-scheme-mode))
>>                      auto-mode-alist))
>> (autoload 'run-snd-scheme    "inf-snd" "Start inferior 
>> Snd-Scheme
>> process" t)
>> (setq inf-snd-scheme-program-name "snd -separate")
>>
>> No magic is happening, unfortunately. I am left hanging in
>> Fundamental mode and that's about it... The snd-*-commands show 
>> up
>> in M-x, but they don't really do very much.
>>
>> I'm running emacs 29.4, arch linux and the latest version of
>> sndwarp
>>
>> Grateful for any help!
>>
>> Best,
>> Kenneth
>>
>>
>> _______________________________________________
>> Cmdist mailing list
>> Cmdist at ccrma.stanford.edu
>> https://cm-mail.stanford.edu/mailman/listinfo/cmdist




More information about the Cmdist mailing list