Re: Auto-detect Guile in a text editor

2018-11-13 Thread Barry Fishman
On 2018-10-23 13:07:33 +02, HiPhish wrote: > Hello Schemers > > When I open a Scheme file (Neo)vim the file type is set to "scheme", but I > would like to be able to detect that it is not just Scheme, but Guile Scheme. > So far I have set up the editor to scan the first line for a shebang and if

Re: Auto-detect Guile in a text editor

2018-10-23 Thread Matt Wette
On 10/23/18 4:07 AM, HiPhish wrote: And while I'm at that topic, what is the proper way of writing a shebang when I don't know where Guile is installed to? For example, the Guile manual frequently uses #!/usr/local/bin/guile but what if I have Guile installed via Guix and it is somewhere

Re: Auto-detect Guile in a text editor

2018-10-23 Thread Tk
‐‐‐ Original Message ‐‐‐ On Tuesday, 23 October 2018 13:36, Tkprom wrote: > On Tuesday, 23 October 2018 13:07, HiPhish hiph...@posteo.de wrote: > > > Hello Schemers > > When I open a Scheme file (Neo)vim the file type is set to "scheme", but I > > would like to be able to detect that i

Re: Auto-detect Guile in a text editor

2018-10-23 Thread Tkprom
On Tuesday, 23 October 2018 13:07, HiPhish wrote: > Hello Schemers > > When I open a Scheme file (Neo)vim the file type is set to "scheme", but I > would like to be able to detect that it is not just Scheme, but Guile Scheme. > So far I have set up the editor to scan the first line for a shebang

Auto-detect Guile in a text editor

2018-10-23 Thread HiPhish
Hello Schemers When I open a Scheme file (Neo)vim the file type is set to "scheme", but I would like to be able to detect that it is not just Scheme, but Guile Scheme. So far I have set up the editor to scan the first line for a shebang and if the word "guile" appears to set the file type to "s