4 In the C coding style widely used in GNOME, identifiers are written in
5 camel case and function arguments are aligned to the right end. That
6 makes it a bit cumbersome to keep your code consistent with the style
7 with ordinary editor commands.
9 gobject-minor-mode is an Emacs minor mode intended to help editing C
10 source code in that style. It mainly provides two features: text
11 alignment and snippet insersion.
17 * Copy .elc files somewhere in your load-path
18 * Add the following lines to ~/.emacs/init.el:
21 (autoload 'gobject-minor-mode "gobject-minor-mode" "GObject minor mode" t)
22 (add-hook 'c-mode-hook 'gobject-minor-mode)
29 --------------|---------------------------------------------------|
30 | C-c C-g a | Align argument list at point |
31 | C-c C-g f | Align function declarations in the current region |
32 | C-c C-g c | Insert ```module_object``` |
33 | C-c C-g C | Insert ```MODULE_OBJECT``` |
34 | C-c C-g C-c | Insert ```ModuleObject``` |
35 | C-c C-g s | Insert custom snippets |