[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d34b2ae 4/4: Merge branch 'master' of git.sv.gnu.org:/srv/
From: |
ken manheimer |
Subject: |
[elpa] master d34b2ae 4/4: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa |
Date: |
Sat, 23 Jan 2016 01:46:30 +0000 |
branch: master
commit d34b2ae62371edd2ac2bc04a22b3e39cb7d215b7
Merge: 2b2b9db eaa2c7a
Author: Ken Manheimer <address@hidden>
Commit: Ken Manheimer <address@hidden>
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa
---
packages/gnome-c-style/README.md | 13 ++-----------
packages/gnome-c-style/gnome-c-style.el | 8 ++++----
2 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/packages/gnome-c-style/README.md b/packages/gnome-c-style/README.md
index 336a462..86b79a7 100644
--- a/packages/gnome-c-style/README.md
+++ b/packages/gnome-c-style/README.md
@@ -1,24 +1,15 @@
gnome-c-style
======
-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.
-
-gnome-c-style is an Emacs minor mode intended to help editing C
-source code in that style. It mainly provides two features: text
-alignment and snippet insersion.
+gnome-c-style is an Emacs minor mode for editing C source code in [GNOME C
coding
style](https://developer.gnome.org/programming-guidelines/stable/c-coding-style.html.en).
In particular, it is useful to properly line-up [function
arguments](https://developer.gnome.org/programming-guidelines/stable/c-coding-style.html.en#functions)
and [function declarations in header
files](https://developer.gnome.org/programming-guidelines/stable/c-coding-style.html.en#functions).
Install
------
-* Type "make"
-* Copy .elc files somewhere in your load-path
+* M-x package-install gnome-c-style
* Add the following lines to ~/.emacs/init.el:
```
-(autoload 'gnome-c-style-mode "gnome-c-style" "GNOME-style C minor mode" t)
(add-hook 'c-mode-hook 'gnome-c-style-mode)
```
diff --git a/packages/gnome-c-style/gnome-c-style.el
b/packages/gnome-c-style/gnome-c-style.el
index b7615d7..66c6578 100644
--- a/packages/gnome-c-style/gnome-c-style.el
+++ b/packages/gnome-c-style/gnome-c-style.el
@@ -30,10 +30,10 @@
;;
<https://developer.gnome.org/programming-guidelines/stable/c-coding-style.html.en#functions>
;;
;; It basically provides two functions: code alignment and snippet
-;; insertion. To align code, use `gnome-c-style-align-region' to
-;; line-up multiple function declarations in region, and
-;; `gnome-c-style-align-at-point' to line-up arguments in the argument
-;; list at point.
+;; insertion. To align code, use `gnome-c-style-align-decls-region'
+;; to line-up multiple function declarations in region, and
+;; `gnome-c-style-align-arglist-at-point' to line-up arguments in the
+;; argument list at point.
;;
;; To insert code snippet, use `gnome-c-snippet-insert'. The command
;; will let you choose a template to be inserted. This package also