1 ;; Configuration file for cc-ide.el (Emacs C++ IDE extension, see http://g0dil.de)
3 (defun check-namespace-indent (arg)
6 (if (and (looking-at "namespace")
8 (not (looking-at ".*}")))
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
19 (c-hanging-braces-alist . ((namespace-open after)
20 (namespace-close before after)
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)
34 (statement-cont . +))) ))
36 (c-add-style "j32" j32-c-style)
38 (set (make-local-variable 'ccide-file-vars)
41 (c-file-style . "j32")
42 (indent-tabs-mode . nil)
43 (ispell-local-dictionary . "american")
44 (compile-command . "scons -U")))
46 (set (make-local-variable 'ccide-project-name) "PyKit")
48 (let ((local-conf (ccide-project-search-upwards "project-local.el")))
50 (load-file local-conf)))
52 (setq indent-tabs-mode nil) ;; needed since whitespace-mode caches this value ...
55 (message "Loaded project settings.")
58 ;; indent-tabs-mode: nil