Enable semantic mode not only for build-in CEDET but for external Bzr/Git.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 10 Mar 2014 23:16:14 +0200
changeset 1121 88df66cabc20
parent 1120 ce8e07de9789
child 1122 0e255897262a
Enable semantic mode not only for build-in CEDET but for external Bzr/Git.
.emacs-my
--- a/.emacs-my	Mon Mar 10 22:54:14 2014 +0200
+++ b/.emacs-my	Mon Mar 10 23:16:14 2014 +0200
@@ -2248,13 +2248,10 @@
 
 ;; For debug use 'semantic-debug-idle-function' and 'semantic-debug-idle-work-function'.
 
-(unless (featurep 'cedet)
-  (when (or
-         (and (= emacs-major-version 23) (>= emacs-minor-version 2))
-         (>= emacs-major-version 24) )
-    (semantic-mode 1)
-    (require 'srecode)
-    ))
+(when (or
+       (and (= emacs-major-version 23) (>= emacs-minor-version 2))
+       (>= emacs-major-version 24) )
+  (require 'cedet))
 
 (when (featurep 'cedet)
   (global-semantic-idle-scheduler-mode 1)
@@ -2272,6 +2269,8 @@
   (setq semantic-idle-scheduler-work-idle-time 60)
   ;; (setq semantic-idle-work-parse-neighboring-files-flag nil)
 
+  (semantic-mode 1)
+
   ;; semantic-dependency-system-include-path, semantic-customize-system-include-path
 
   ;; file local project unloaded system recursive
@@ -2282,6 +2281,7 @@
 
   (global-ede-mode t)
 
+  (require 'srecode)
   (global-srecode-minor-mode 1)
   (add-hook 'prog-mode-hook 'srecode-minor-mode)