]> code.delx.au - gnu-emacs-elpa/blob - README.md
Use table in README.md
[gnu-emacs-elpa] / README.md
1 gobject-minor-mode
2 ======
3
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.
8
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.
12
13 Install
14 ------
15
16 * Type "make"
17 * Copy .elc files somewhere in your load-path
18 * Add the following lines to ~/.emacs/init.el:
19
20 ```
21 (autoload 'gobject-minor-mode "gobject-minor-mode" "GObject minor mode" t)
22 (add-hook 'c-mode-hook 'gobject-minor-mode)
23 ```
24
25 Usage
26 ------
27
28 | Key | Command |
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 |