add indent-buffer utility function
refactor common mode configuration