Well, here's what many do:
This line at the top of the header tells emacs its C ++.
I like this better than just calling all .h C ++ files, because some of them are not. Although I must admit, although it annoys me because of its ugliness, I took to call my header files .hpp .: - /
source share