On Wed, Jun 6, 2012 at 8:50 AM, Lex Trotman elextr@gmail.com wrote:
On 6 June 2012 05:18, John Gabriele jmg3000@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.
---John