(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(column-number-mode t) '(current-language-environment "Japanese") '(display-time-mode t) '(ecb-layout-window-sizes nil) '(ecb-primary-secondary-mouse-buttons (quote mouse-1--mouse-2)) '(inhibit-startup-screen t) '(line-number-mode nil) '(show-paren-mode t) '(size-indication-mode t) '(text-mode-hook (quote (text-mode-hook-identify))))
;###global(GNU GLOBAL source code tag system)#### ;to use global from Emacs, you need to load the `gtags . el' and execute gtags-mode function in it. ;you need to add it to load-path for `gtags . el'file. ;(add-to-list 'load-path "");已经在之前的代码中load完了 (autoload 'gtags-mode "gtags" "" t);;start Emacs and execute gtags-mode function. (setq c-mode-hook '(lambda () (gtags-mode 1) ;(gtags-make-complete-list) ));get into gtags-mode whenever you get into c-mode ;###global(GNU GLOBAL source code tag system)^^^^
;###cedet(Collection of Emacs Development Environment Tools)#### (load-file "/home/diga/.emacsLoadpath/cedet/common/cedet.el");"读取cedet.el 文件" (global-ede-mode 1); Enable the Project management system (semantic-load-enable-code-helpers); Enable prototype help and smart completion (global-srecode-minor-mode 1); Enable template insertion menu (global-set-key [(f4)] 'speedbar-get-focus);speedbar快捷键[F4] ;(setq semanticdb-project-roots ;(list ;(expand-file-name "/home/diga/work/newpf/root/usr/src")));;可以设置为项目的顶级目录 ;(global-set-key [(control tab)] ' senator-completion-menu-popup) ;(define-key c-mode-base-map [(C-return)] 'semantic-ia-complete-symbol-menu);手动补全ctrl+Enter (defun my-cedet-hook () (local-set-key [(control return)] 'semantic-ia-complete-symbol) (local-set-key "\C-c?" 'semantic-ia-complete-symbol-menu) (local-set-key "\C-cd" 'semantic-ia-fast-jump) (local-set-key "\C-cr" 'semantic-symref-symbol) (local-set-key "\C-cR" 'semantic-symref)) (add-hook 'c-mode-common-hook 'my-cedet-hook) ;或设置为(control tab) or (meta ?/) ;;当遇到.或>时,在另一buffer窗口显示所有其元素 (defun my-c-mode-cedet-hook () (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) ;###cedet(Collection of Emacs Development Environment Tools)^^^^
;(custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ; '(default ((t (:inherit nil :stipple nil :background "grey30" :foreground "gainsboro" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant ;normal :weight normal :height 93 :width normal :foundry "unknown" :family "DejaVu Sans Mono"))))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "unknown" :family "DejaVu Sans Mono")))))