Created
October 28, 2012 13:42
-
-
Save alexott/3968635 to your computer and use it in GitHub Desktop.
Working configuration for CEDET 1.1 & below (only separate releases, not included into GNU Emacs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;; cedet-1.1-startup.el --- Working configuration for CEDET 1.1 & below | |
| ;; Copyright (C) Alex Ott | |
| ;; | |
| ;; Author: Alex Ott <alexott@gmail.com> | |
| ;; Keywords: CEDET 1.1, | |
| ;; Requirements: CEDET 1.1 or below | |
| (load-file "~/tmp/cedet-1.1/common/cedet.el") | |
| (require 'semantic-decorate-include) | |
| (require 'semantic-gcc) | |
| (require 'semantic-ia) | |
| (require 'eassist) | |
| (require 'semantic-lex-spp) | |
| (semantic-load-enable-excessive-code-helpers) | |
| (custom-set-variables | |
| '(semantic-idle-scheduler-idle-time 3) | |
| '(semantic-self-insert-show-completion-function | |
| (lambda nil (semantic-ia-complete-symbol-menu (point)))) | |
| '(global-semantic-tag-folding-mode t nil (semantic-util-modes))) | |
| (setq senator-minor-mode-name "SN") | |
| (setq semantic-imenu-auto-rebuild-directory-indexes nil) | |
| (global-srecode-minor-mode 1) | |
| (global-semantic-mru-bookmark-mode 1) | |
| (global-semantic-tag-folding-mode 1) | |
| (setq-mode-local c-mode semanticdb-find-default-throttle | |
| '(project unloaded system recursive)) | |
| (setq-mode-local c++-mode semanticdb-find-default-throttle | |
| '(project unloaded system recursive)) | |
| (setq-mode-local erlang-mode semanticdb-find-default-throttle | |
| '(project unloaded system recursive)) | |
| ;; customisation of modes | |
| (defun alexott/cedet-hook () | |
| (local-set-key [(control return)] 'semantic-ia-complete-symbol-menu) | |
| (local-set-key "\C-c?" 'semantic-ia-complete-symbol) | |
| ;; | |
| (local-set-key "\C-c>" 'semantic-complete-analyze-inline) | |
| (local-set-key "\C-c=" 'semantic-decoration-include-visit) | |
| (local-set-key "\C-cj" 'semantic-ia-fast-jump) | |
| (local-set-key "\C-cq" 'semantic-ia-show-doc) | |
| (local-set-key "\C-cs" 'semantic-ia-show-summary) | |
| (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle) | |
| (local-set-key (kbd "C-c <left>") 'semantic-tag-folding-fold-block) | |
| (local-set-key (kbd "C-c <right>") 'semantic-tag-folding-show-block) | |
| ) | |
| (add-hook 'c-mode-common-hook 'alexott/cedet-hook) | |
| (add-hook 'lisp-mode-hook 'alexott/cedet-hook) | |
| (add-hook 'scheme-mode-hook 'alexott/cedet-hook) | |
| (add-hook 'emacs-lisp-mode-hook 'alexott/cedet-hook) | |
| (add-hook 'erlang-mode-hook 'alexott/cedet-hook) | |
| (defun alexott/c-mode-cedet-hook () | |
| (local-set-key "\C-ct" 'eassist-switch-h-cpp) | |
| (local-set-key "\C-xt" 'eassist-switch-h-cpp) | |
| (local-set-key "\C-ce" 'eassist-list-methods) | |
| (local-set-key "\C-c\C-r" 'semantic-symref) | |
| ) | |
| (add-hook 'c-mode-common-hook 'alexott/c-mode-cedet-hook) | |
| ;; hooks, specific for semantic | |
| (defun alexott/semantic-hook () | |
| (imenu-add-to-menubar "TAGS") | |
| ) | |
| (add-hook 'semantic-init-hooks 'alexott/semantic-hook) | |
| ;; gnu global support | |
| (when (cedet-gnu-global-version-check t) | |
| (require 'semanticdb-global) | |
| (semanticdb-enable-gnu-global-databases 'c-mode) | |
| (semanticdb-enable-gnu-global-databases 'c++-mode)) | |
| ;; ctags | |
| (when (cedet-ectag-version-check t) | |
| (require 'semanticdb-ectag) | |
| (semantic-load-enable-primary-exuberent-ctags-support)) | |
| ;;; ede customization | |
| (global-ede-mode t) | |
| (ede-enable-generic-projects) | |
| ;;; cedet-1.1-startup.el ends here |