Clean up c-mode setting