Add support for c-mode, c++-mode, java-mode