Open aqing1987 opened 7 years ago
It seems like you didn't make your header files opened in C++ mode. It might be in C mode, where google-c-style.el doesn't work as you expected.
To tell Emacs to open header files in C++ mode, you can add the following lines to your ~.emacs
file:
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
(add-hook 'c-mode-common-hook 'google-set-c-style)
Hi there, I use emacs GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.30) in ubuntu 16.04 desktop.
I use the goole-c-style.el for c++ coding, but the public notation indent is not right according to cppguide.html # Class Format #
My code snippet as below:
and my init.el content as below:
Any help ? Thank you!