.emacs-my
changeset 1175 c7faddfb54ae
parent 1174 1f2b829bd3e6
parent 1171 489a962e1bd3
child 1176 4998abbdd5f9
equal deleted inserted replaced
1174:1f2b829bd3e6 1175:c7faddfb54ae
  2291        (>= emacs-major-version 24) )
  2291        (>= emacs-major-version 24) )
  2292   (require 'cedet))
  2292   (require 'cedet))
  2293 
  2293 
  2294 (when (featurep 'cedet)
  2294 (when (featurep 'cedet)
  2295   (require 'semantic)
  2295   (require 'semantic)
  2296   (semantic-mode 1)
       
  2297 
  2296 
  2298   (global-semantic-idle-scheduler-mode 1)
  2297   (global-semantic-idle-scheduler-mode 1)
  2299   (global-semantic-idle-summary-mode 1)
  2298   (global-semantic-idle-summary-mode 1)
  2300   (global-semantic-idle-completions-mode 1)
  2299   (global-semantic-idle-completions-mode 1)
  2301   (global-semantic-mru-bookmark-mode 1)
  2300   (global-semantic-mru-bookmark-mode 1)
  2303   (global-semantic-stickyfunc-mode -1)
  2302   (global-semantic-stickyfunc-mode -1)
  2304   (global-semantic-highlight-func-mode 1)
  2303   (global-semantic-highlight-func-mode 1)
  2305   (global-semantic-decoration-mode 1)
  2304   (global-semantic-decoration-mode 1)
  2306   (global-semantic-idle-local-symbol-highlight-mode 1)
  2305   (global-semantic-idle-local-symbol-highlight-mode 1)
  2307 
  2306 
  2308   (setq semantic-idle-scheduler-idle-time 1)
  2307   (setq semantic-idle-scheduler-idle-time 10)
  2309   (setq semantic-idle-scheduler-work-idle-time 60)
  2308   (setq semantic-idle-scheduler-work-idle-time 60)
  2310   (setq semantic-idle-scheduler-max-buffer-size 100000)
  2309   (setq semantic-idle-scheduler-max-buffer-size 100000)
  2311   ;; (setq semantic-idle-work-parse-neighboring-files-flag nil)
  2310   ;; (setq semantic-idle-work-parse-neighboring-files-flag nil)
  2312 
  2311 
  2313   ;; semantic-dependency-system-include-path, semantic-customize-system-include-path
  2312   ;; semantic-dependency-system-include-path, semantic-customize-system-include-path
  2316   (setq-mode-local c-mode semanticdb-find-default-throttle '(file local))
  2315   (setq-mode-local c-mode semanticdb-find-default-throttle '(file local))
  2317   (add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c-mode)))
  2316   (add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c-mode)))
  2318   (add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c++-mode)))
  2317   (add-hook 'c-mode-hook (lambda nil (semantic-add-system-include "~/.emacs.d/include" 'c++-mode)))
  2319   (global-semanticdb-minor-mode 1)
  2318   (global-semanticdb-minor-mode 1)
  2320 
  2319 
  2321   (global-ede-mode t)
  2320   (global-cedet-m3-minor-mode 1)
       
  2321 
       
  2322   (semantic-mode 1)
       
  2323   (global-ede-mode 1)
  2322 
  2324 
  2323   (require 'srecode)
  2325   (require 'srecode)
  2324   (unless (boundp 'srecode-map-load-path)
  2326   (unless (boundp 'srecode-map-load-path)
  2325     (setq srecode-map-load-path nil))
  2327     (setq srecode-map-load-path nil))
  2326   (add-to-list 'srecode-map-load-path (locate-user-emacs-file "srecode/"))
  2328   (add-to-list 'srecode-map-load-path (locate-user-emacs-file "srecode/"))