Fixed whitespace in all files (no tabs)
[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        ( c-file-style . "senf" )
32        ( indent-tabs-mode . nil )
33        ( ispell-local-dictionary . "american" )))
34
35 (set (make-local-variable 'ccide-default-copyright)
36      (concat "//\n"
37              "// This program is free software; you can redistribute it and/or modify\n"
38              "// it under the terms of the GNU General Public License as published by\n"
39              "// the Free Software Foundation; either version 2 of the License, or\n"
40              "// (at your option) any later version.\n"
41              "//\n"
42              "// This program is distributed in the hope that it will be useful,\n"
43              "// but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
44              "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
45              "// GNU General Public License for more details.\n"
46              "//\n"
47              "// You should have received a copy of the GNU General Public License\n"
48              "// along with this program; if not, write to the\n"
49              "// Free Software Foundation, Inc.,\n"
50              "// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n"))
51
52 (let ((local-conf (expand-file-name "project-local.el" ccide-project-root)))
53   (if (file-readable-p local-conf)
54       (load-file local-conf)))