change error face, fix c++ class snippet, add skeleton 'format' function, use c++ mode for .h files