]> code.delx.au - gnu-emacs-elpa/blobdiff - README.md
align: Fix off-by-one when adding newline
[gnu-emacs-elpa] / README.md
index 3da5fb605c1d230c3ce880f24cc3737a8ef0a45b..ece29faf533be51acf747b2aae46351bf031579f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-gobject-minor-mode --- Emacs minor mode for editing GObject C source code
+gobject-minor-mode
 ======
 
-In the C coding style widely used in GNOME, identifiers are written in
-camel case and function arguments are aligned to the right end.  That
-makes it a bit cumbersome to keep your code consistent with the style
-with ordinary editor commands.
+In the C coding style commonly used in GNOME, identifiers are written
+in camel case and function arguments are aligned to the right end.
+That makes it a bit cumbersome to keep your code consistent with the
+style, even with align.el or plugins like yasnippet.
 
 gobject-minor-mode is an Emacs minor mode intended to help editing C
 source code in that style.  It mainly provides two features: text
@@ -25,10 +25,13 @@ Install
 Usage
 ------
 
-* To align argument list at point: C-c C-g a
-* To align function declarations in the current region: C-c C-g f
-
-* To insert "module_object": C-c C-g c
-* To insert "MODULE_OBJECT": C-c C-g C
-* To insert "ModuleObject": C-c C-g C-c
-* To insert custom snippets: C-c C-g s
+| Key         | Command                                           |
+--------------|---------------------------------------------------|
+| C-c C-g g   | Guess alignment columns from region               |
+| C-c C-g s   | Set alignment column to point                     |
+| C-c C-g a   | Align argument list at point                      |
+| C-c C-g r   | Align function declarations in the current region |
+| C-c C-g c   | Insert ```module_object```                        |
+| C-c C-g C   | Insert ```MODULE_OBJECT```                        |
+| C-c C-g C-c | Insert ```ModuleObject```                         |
+| C-c C-g s   | Insert custom snippet                             |