Hi Iuri,
Emacs comes bundled with a standard tcl mode, but what you may not know is that there is an excellent openacs mode for emacs that Bart Teeuwisse put together. It covers a bunch of things, amongst which is support for sql embedded in tcl amd support for easy tailing of server logs.
https://openacs.org/xowiki/ide-emacs