[Geany] idea for Lisp/Scheme/Clojure indentation support (plug-in?)

Lex Trotman elextr at xxxxx
Wed Jun 6 22:58:05 UTC 2012


On 7 June 2012 01:28, John Gabriele <jmg3000 at gmail.com> wrote:
> On Wed, Jun 6, 2012 at 8:50 AM, Lex Trotman <elextr at gmail.com> wrote:
>> On 6 June 2012 05:18, John Gabriele <jmg3000 at gmail.com> wrote:
>>> Hi,
>>>
>>> I'd like to be able to use Geany for writing Clojure code, {snip}
>>>
>>> Could something like this be implemented as a plug-in?
>>
>> Sure you can just connect to the editor-notify signal, check for
>> char-added is a return and process it how you want then return true to
>> stop the normal indentation happening.
>
> Thanks, Lex. I found [the plug-in
> how-to](http://www.geany.org/manual/reference/howto.html) and will
> have a look.
>
>>
>> And of course you should check the filetype is lisp before you do anything.
>
> Actually, I've gone ahead and created my own Clojure custom filetype
> (~/.config/geany/filedefs/filetypes.Clojure.conf), which uses the Lisp
> lexer.

Thats ok, but you shouldn't prevent users of other lisps from using
your plugin, maybe accept a list of filetypes.

Cheers
Lex


>
> ---John
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany



More information about the Users mailing list