Added buffer and c-mode settings