File: kom-style.el

package info (click to toggle)
lyskom-server 2.1.2-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 10,384 kB
  • ctags: 5,091
  • sloc: ansic: 50,985; exp: 12,368; sh: 10,983; python: 2,927; makefile: 1,017; yacc: 465; awk: 340; lisp: 271; lex: 218; sed: 50
file content (22 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; Define the indentation style "KOM", for use with GNU Emacs.  This
;; file was placed in the public domain by Per Cederqvist on
;; 2003-08-19.  Please report bugs or improvements at
;; http://bugzilla.lysator.liu.se/

(c-add-style
 "KOM"
 '((c-basic-offset . 4)
   (c-comment-only-line-offset . 0)
   (c-offsets-alist . ((statement-block-intro . +)
		       (knr-argdecl-intro . +)
		       (substatement-open . 0)
		       (label . 0)
		       (statement-cont . +)))
   (c-hanging-braces-alist . ((brace-list-open)
			      (class-open after)
			      (inline-close after)
			      (block-close . c-snug-do-while)))
   (c-hanging-colons-alist . ((access-label after)
			      (case-label after)))
   (c-cleanup-list . (defun-close-semi
		       scope-operator))))