Fix: "load: Symbol's value as variable is void: c-mode" for 'setq-mode-local'.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 08 Mar 2015 20:36:48 -0500
changeset 1256 39879e285b7a
parent 1255 abba187b8cab
child 1257 a17e5b709fa7
Fix: "load: Symbol's value as variable is void: c-mode" for 'setq-mode-local'.
.emacs-my
--- a/.emacs-my	Sun Mar 08 01:10:01 2015 -0600
+++ b/.emacs-my	Sun Mar 08 20:36:48 2015 -0500
@@ -2440,10 +2440,12 @@
 
 ;; 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-major-version 24) )
-  (require 'cedet))
+(eval-and-compile
+  (when (or
+         (and (= emacs-major-version 23) (>= emacs-minor-version 2))
+         (>= emacs-major-version 24) )
+    (require 'cedet)
+    (require 'mode-local)))
 
 (when (featurep 'cedet)
   (require 'semantic)