support c++-mode too