class TotoIsMyFriend { }; // correct
class toto_is_my_friend { }; // wrong
Class members, variables, and C function follow the same convention but without the initial capital:
void totoIsMyFriend(void); // correct
void Toto-is-my-friend(void); // wrong
class Toto { int i; void totoIsMyFriend(void) { return i; }; }; // correct
class Toto { int i; void Toto-is-my-friend(void) { return i; }; }; // wrong
(defconst enki-c-style
'((c-basic-offset . 4)
(c-offsets-alist . ((substatement-open . 0)
(inline-open . 0)
))
)
"Enki programming style")
;; Customizations for all modes in CC Mode.
(defun enki-c-mode-common-hook ()
(c-add-style "enki" enki-c-style)
)
(add-hook 'c-mode-common-hook 'enki-c-mode-common-hook)
And adding the following to the top line of each of your source files:
// emacs settings information: -*- mode: c++; tab-width: 4; c-file-style: "enki"; -*-
1.5.1