Use '~/.emacs.d/include' as place for headers.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 29 Aug 2010 15:34:24 +0300
changeset 447 fde6ee13fce1
parent 446 6e0f17222588
child 448 bfed530c0e79
Use '~/.emacs.d/include' as place for headers.
.emacs-my
--- a/.emacs-my	Sun Aug 29 15:16:15 2010 +0300
+++ b/.emacs-my	Sun Aug 29 15:34:24 2010 +0300
@@ -983,8 +983,9 @@
   ;; (setq semantic-stickyfunc-sticky-classes '(function type variable include package))
 
   (setq-mode-local c-mode semanticdb-find-default-throttle '(project unloaded system recursive))
-  (semantic-add-system-include "~/.emacs.d/include" 'c-mode)
-  (semantic-add-system-include "~/.emacs.d/include" 'c++-mode)
+  ;; semantic-dependency-system-include-path
+  (add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c-mode)))
+  (add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c++-mode)))
   (global-semanticdb-minor-mode 1)
 
   ;; (semantic-add-system-include "~/include" 'c++-mode)