I'm just getting started with tcl; what sort of beautifier, or prettifier, or formatter, is there for tcl with emacs?

My main interest would be to fix existing scripts so that particularly the indenting is consistent and the braces, brackets and parenthesis line up nicely.

It doesn't have to be perfect. Perhaps it's the nature of tcl that this is more difficult than for Java?

  • 3
    The indent-region command is available from tcl-mode menu. You can first do C-x h (mark-whole-buffer) to be able to indent the whole buffer. – JeanPierre Apr 21 '16 at 10:05
  • 1
    @JeanPierre make that an answer, it works perfectly – Ocaso Protal Jul 26 '19 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.