change the cursor type when mode changes
change snippet format for c/cpp