Posted to tcl by patthoyts at Wed Dec 09 20:12:17 GMT 2009view raw

  1. ;; Add this to your .emacs to define a style that matches the Tcl/Tk style
  2. ;; and to use it hit C-c . tcltk RET
  3. ;;
  4. (c-add-style "tcltk"
  5. '("gnu"
  6. (tab-width . 8)
  7. (indent-tabs-mode . t)
  8. (c-basic-offset . 4)
  9. (c-offsets-alist
  10. (substatement-open . 0)
  11. (statement-case-open . 0)
  12. (case-label . 0)
  13. (innamespace . -)
  14. (inline-open . 0)
  15. (arglist-cont-nonempty . ++))))