typo fix
[pykit.git] / project.el
1 ;; Configuration file for cc-ide.el (Emacs C++ IDE extension, see http://g0dil.de)
2
3 (defun check-namespace-indent (arg)
4   (save-excursion
5     (back-to-indentation)
6     (if (and (looking-at "namespace")
7              (looking-at ".*{")
8              (not (looking-at ".*}")))
9         [0] '+)))
10
11 (defconst j32-c-style
12   '((c-basic-offset              . 4)
13     (c-access-key                . "\\(public\\|protected\\|private\\|signals\\|public\\s-*slots\\|protected\\s-*slots\\|private\\s-slots\\)\\s-*:")
14     (c-backslash-column          . 98)
15     (c-cleanup-list              . (empty-defun-braces
16                                     defun-close-semi
17                                     list-close-comma
18                                     scope-operator))
19     (c-hanging-braces-alist      . ((namespace-open after)
20                                     (namespace-close before after)
21                                     (brace-list-open)
22                                     (brace-entry-open)
23                                     (substatement-open after)
24                                     (block-close . c-snug-do-while)
25                                     (extern-lang-open after)
26                                     (inexpr-class-open after)
27                                     (inexpr-class-close before)))
28     (c-offsets-alist             . ((namespace-open . [0])
29                                     (namespace-close . [0])
30                                     (innamespace . check-namespace-indent)
31                                     (statement-block-intro . +)
32                                     (substatement-open . 0)
33                                     (label . 0)
34                                     (statement-cont . +))) ))
35
36 (c-add-style "j32" j32-c-style)
37
38 (set (make-local-variable 'ccide-file-vars)
39      '((fill-column  . 100)
40        (comment-column . 40)
41        (c-file-style . "j32")
42        (indent-tabs-mode . nil)
43        (ispell-local-dictionary . "american")
44        (compile-command . "scons -U")))
45
46 (set (make-local-variable 'ccide-project-name) "PyKit")
47
48 (let ((local-conf (ccide-project-search-upwards "project-local.el")))
49   (if local-conf
50       (load-file local-conf)))
51
52 (setq indent-tabs-mode nil) ;; needed since whitespace-mode caches this value ...
53 (whitespace-mode 1)
54
55 (message "Loaded project settings.")
56 \f
57 ;; Local Variables:
58 ;; indent-tabs-mode: nil
59 ;; End: