How can I get into the C++mode automaticaly when open .h files?
I uses emacs23.2 in fedura6.
I open .cpp file use C-x C-f xxx.h .
How can I get into the C++mode automaticaly when open .h files?
I uses emacs23.2 in fedura6.
I open .cpp file use C-x C-f xxx.h .
(setq auto-mode-alist (cons '("\\.h$" . c++-mode) auto-mode-alist))
probably this will be better aesthetically?
(add-to-list 'auto-mode-alist (cons "\\.h\\'" 'c++-mode))