Enable CEDET which custom installed.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 01 Sep 2010 16:33:09 +0300
changeset 454 18ce601cb4fb
parent 453 a996baf6b700
child 455 434f14adcd26
Enable CEDET which custom installed.
.emacs-my
--- a/.emacs-my	Tue Aug 31 10:57:13 2010 +0300
+++ b/.emacs-my	Wed Sep 01 16:33:09 2010 +0300
@@ -954,9 +954,20 @@
 ;; CEDET, semantic.
 
 ;; For debug use 'semantic-debug-idle-function' and 'semantic-debug-idle-work-function'.
-(when (or (and (= emacs-major-version 23) (= emacs-minor-version 2))
-          (>= emacs-minor-version 24))
-  (semantic-mode 1)
+
+(unless (featurep 'cedet)
+  (when (or (and (= emacs-major-version 23) (= emacs-minor-version 2)) (>= emacs-minor-version 24))
+    (semantic-mode 1)
+    ))
+
+(when (featurep 'cedet)
+  (unless (equal cedet-version "1.0pre7") ; Come with Emacs 23.2.
+    (global-ede-mode t)
+    (semantic-load-enable-code-helpers)
+    (semantic-load-enable-guady-code-helpers)
+    ;; (global-srecode-minor-mode 1)
+    )
+
   (global-semantic-idle-summary-mode 1)
   (global-semantic-idle-scheduler-mode 1)
   (setq semantic-idle-scheduler-idle-time 1) ; 1 sec.