.emacs-my
changeset 1037 63dd116e3153
parent 1036 9b8015c8a847
child 1050 3fd11f075f60
--- a/.emacs-my	Wed May 08 11:40:04 2013 +0300
+++ b/.emacs-my	Wed May 08 12:09:07 2013 +0300
@@ -2115,7 +2115,7 @@
   (global-semantic-decoration-mode 1)
   (global-semantic-idle-local-symbol-highlight-mode 1)
 
-  (setq semantic-idle-scheduler-idle-time 5)
+  (setq semantic-idle-scheduler-idle-time 1)
   (setq semantic-idle-scheduler-work-idle-time 60)
   ;; (setq semantic-idle-work-parse-neighboring-files-flag nil)
 
@@ -2140,10 +2140,17 @@
   ;;   (semanticdb-enable-gnu-global-databases 'c++-mode)
   ;;   )
 
-  (global-set-key (kbd "C-c , .") 'semantic-ia-fast-jump)
-  (global-set-key (kbd "C-c , d") 'semantic-ia-show-doc)
-  (global-set-key (kbd "C-c , D") 'semantic-ia-describe-class)
-  (global-set-key (kbd "C-c , c") 'semantic-ia-complete-symbol-menu)
+  (defun my-c-mode-cedet-hook ()
+    (local-set-key [C-return] 'semantic-complete-symbol)
+    ;; (local-set-key [C-return] 'semantic-complete-analyze-inline)
+    (local-set-key "." 'semantic-complete-self-insert)
+    (local-set-key ">" 'semantic-complete-self-insert))
+  (add-hook 'c-mode-common-hook 'my-c-mode-cedet-hook)
+
+  ;; (global-set-key (kbd "C-c , .") 'semantic-ia-fast-jump)
+  ;; (global-set-key (kbd "C-c , d") 'semantic-ia-show-doc)
+  ;; (global-set-key (kbd "C-c , D") 'semantic-ia-describe-class)
+  ;; (global-set-key (kbd "C-c , c") 'semantic-ia-complete-symbol-menu)
   )
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;