]> code.delx.au - gnu-emacs-elpa/blob - README.md
Initial import
[gnu-emacs-elpa] / README.md
1 gobject-minor-mode --- Emacs minor mode for editing GObject C source code
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 * To align argument list at point: C-c C-g a
29 * To align function declarations in the current region: C-c C-g f
30
31 * To insert "module_object": C-c C-g c
32 * To insert "MODULE_OBJECT": C-c C-g C
33 * To insert "ModuleObject": C-c C-g C-c
34 * To insert custom snippets: C-c C-g s