diff options
| author | Tom Yu <tlyu@mit.edu> | 2009-10-26 19:08:43 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2009-10-26 19:08:43 +0000 |
| commit | 670fee9dd7baddb46f78478dfea9f62fecf416cb (patch) | |
| tree | d17e65978617b45cc911643f18129923ba3587d7 /src/util | |
| parent | 3f4aa3e91b2b1660170f419a8baf62495788cb27 (diff) | |
| download | krb5-670fee9dd7baddb46f78478dfea9f62fecf416cb.tar.gz krb5-670fee9dd7baddb46f78478dfea9f62fecf416cb.tar.xz krb5-670fee9dd7baddb46f78478dfea9f62fecf416cb.zip | |
Fix missing emacs file variable markers. Add krb5-c-style.el: the
emacs lisp settings for the standard coding style.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23049 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/krb5-c-style.el | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/util/krb5-c-style.el b/src/util/krb5-c-style.el new file mode 100644 index 000000000..e366b8410 --- /dev/null +++ b/src/util/krb5-c-style.el @@ -0,0 +1,30 @@ +;;; -*- mode: emacs-lisp; indent-tabs-mode: nil -*- +(defconst krb5-c-style + '("bsd" + (c-basic-offset . 4) + (c-cleanup-list . (brace-elseif-brace + brace-else-brace + defun-close-semi)) + (c-comment-continuation-stars . "* ") + (c-comment-only-line-offset . 0) + (c-electric-pound-behavior . (alignleft)) + (c-hanging-braces-alist . ((block-close . c-snug-do-while) + (brace-list-open) + (class-open after) + (extern-lang-open after) + (substatement-open after))) + (c-hanging-colons-alist . ((case-label after) + (label after))) + (c-hanging-comment-starter-p . nil) + (c-hanging-comment-ender-p . nil) + (c-indent-comments-syntactically-p . t) + (c-label-minimum-indentation . 0) + (c-offsets-alist . ((inextern-lang . 0) + (arglist-close . 0))) + (c-special-indent-hook . nil) + (fill-column . 79))) + +(defun krb5-c-hook () + (c-add-style "krb5" krb5-c-style)) + +(add-hook 'c-initialization-hook 'krb5-c-hook) |
