Add new file-variable 'comment-column'
[senf.git] / project.el
1 ;; Configuration file for cc-ide.el (Emacs C++ IDE extension, see http://g0dil.de)
2
3  (defconst senf-c-style
4   '((c-basic-offset              . 4)
5     (c-cleanup-list             . (empty-defun-braces 
6                                    defun-close-semi 
7                                    list-close-comma 
8                                    scope-operator 
9                                    compact-empty-funcall))
10     (c-hanging-braces-alist      . ((namespace-open after)
11                                     (namespace-close before after)
12                                     (brace-list-open)
13                                     (brace-entry-open)
14                                     (substatement-open after)
15                                     (block-close . c-snug-do-while)
16                                     (extern-lang-open after)
17                                     (inexpr-class-open after)
18                                     (inexpr-class-close before)))
19     (c-offsets-alist             . ((namespace-open . 0)
20                                     (namespace-close . -)
21                                     (innamespace . +)
22                                     (statement-block-intro . +)
23                                     (substatement-open . 0)
24                                     (label . 0)
25                                     (statement-cont . +))) ))
26
27 (c-add-style "senf" senf-c-style)
28
29 (set (make-local-variable 'ccide-file-vars)
30      '(( fill-column  . 100 )
31        ( comment-column . 40 )
32        ( c-file-style . "senf" )
33        ( indent-tabs-mode . nil )
34        ( ispell-local-dictionary . "american" )
35        ( compile-command . "scons -u test") ))
36
37 (set (make-local-variable 'ccide-default-copyright)
38      (concat "//\n"
39              "// This program is free software; you can redistribute it and/or modify\n"
40              "// it under the terms of the GNU General Public License as published by\n"
41              "// the Free Software Foundation; either version 2 of the License, or\n"
42              "// (at your option) any later version.\n"
43              "//\n"
44              "// This program is distributed in the hope that it will be useful,\n"
45              "// but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
46              "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
47              "// GNU General Public License for more details.\n"
48              "//\n"
49              "// You should have received a copy of the GNU General Public License\n"
50              "// along with this program; if not, write to the\n"
51              "// Free Software Foundation, Inc.,\n"
52              "// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n"))
53
54 (let ((local-conf (ccide-project-search-upwards "project-local.el")))
55   (if local-conf
56       (load-file local-conf)))