add c++-mode setting.