2113 (global-semantic-stickyfunc-mode -1) |
2113 (global-semantic-stickyfunc-mode -1) |
2114 (global-semantic-highlight-func-mode 1) |
2114 (global-semantic-highlight-func-mode 1) |
2115 (global-semantic-decoration-mode 1) |
2115 (global-semantic-decoration-mode 1) |
2116 (global-semantic-idle-local-symbol-highlight-mode 1) |
2116 (global-semantic-idle-local-symbol-highlight-mode 1) |
2117 |
2117 |
2118 (setq semantic-idle-scheduler-idle-time 5) |
2118 (setq semantic-idle-scheduler-idle-time 1) |
2119 (setq semantic-idle-scheduler-work-idle-time 60) |
2119 (setq semantic-idle-scheduler-work-idle-time 60) |
2120 ;; (setq semantic-idle-work-parse-neighboring-files-flag nil) |
2120 ;; (setq semantic-idle-work-parse-neighboring-files-flag nil) |
2121 |
2121 |
2122 ;; semantic-dependency-system-include-path, semantic-customize-system-include-path |
2122 ;; semantic-dependency-system-include-path, semantic-customize-system-include-path |
2123 |
2123 |
2138 ;; (when (ignore-errors (require 'cedet-global)) |
2138 ;; (when (ignore-errors (require 'cedet-global)) |
2139 ;; (semanticdb-enable-gnu-global-databases 'c-mode) |
2139 ;; (semanticdb-enable-gnu-global-databases 'c-mode) |
2140 ;; (semanticdb-enable-gnu-global-databases 'c++-mode) |
2140 ;; (semanticdb-enable-gnu-global-databases 'c++-mode) |
2141 ;; ) |
2141 ;; ) |
2142 |
2142 |
2143 (global-set-key (kbd "C-c , .") 'semantic-ia-fast-jump) |
2143 (defun my-c-mode-cedet-hook () |
2144 (global-set-key (kbd "C-c , d") 'semantic-ia-show-doc) |
2144 (local-set-key [C-return] 'semantic-complete-symbol) |
2145 (global-set-key (kbd "C-c , D") 'semantic-ia-describe-class) |
2145 ;; (local-set-key [C-return] 'semantic-complete-analyze-inline) |
2146 (global-set-key (kbd "C-c , c") 'semantic-ia-complete-symbol-menu) |
2146 (local-set-key "." 'semantic-complete-self-insert) |
|
2147 (local-set-key ">" 'semantic-complete-self-insert)) |
|
2148 (add-hook 'c-mode-common-hook 'my-c-mode-cedet-hook) |
|
2149 |
|
2150 ;; (global-set-key (kbd "C-c , .") 'semantic-ia-fast-jump) |
|
2151 ;; (global-set-key (kbd "C-c , d") 'semantic-ia-show-doc) |
|
2152 ;; (global-set-key (kbd "C-c , D") 'semantic-ia-describe-class) |
|
2153 ;; (global-set-key (kbd "C-c , c") 'semantic-ia-complete-symbol-menu) |
2147 ) |
2154 ) |
2148 |
2155 |
2149 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2156 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2150 (message "imenu") |
2157 (message "imenu") |
2151 |
2158 |