Fix closing braces for structs/classes
Adopt rotate-windows from http://whattheemacsd.com//buffer-defuns.el-02.html