What lines should I add to my _emacs (on Windows) file to have it open .h files in C++ mode? The default is C mode.
Try this:
(add-to-list 'auto-mode-alist '("\.h\'" . c++-mode))
Whenever you open .h files, C++-mode will be used.
1.4m articles
1.4m replys
5 comments
57.0k users