-
Notifications
You must be signed in to change notification settings - Fork 1
/
jmjeong-cedet.el
59 lines (47 loc) · 2.21 KB
/
jmjeong-cedet.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;; --------------------------------------------------------------------------------
;; cedet [2009-10-30]
;; Emacs devel version에 내장되어 있는 cedet는 불안정해서, CVS cedet을 다시 인스톨
;;
;; See cedet/common/cedet.info for configuration details.
;; (add-to-list 'load-path (concat elisp-root-dir "/vendor/cedet"))
(load-file (concat elisp-root-dir "/vendor/cedet/common/cedet.el"))
;; (require 'cedet)
;; Enable EDE (Project Management) features
(global-ede-mode 1)
;; Enable EDE for a pre-existing C++ project
;; (ede-cpp-root-project "NAME" :file "~/myproject/Makefile")
;; Enabling Semantic (code-parsing, smart completion) features
;; Select one of the following:
;; * This enables the database and idle reparse engines
(semantic-load-enable-minimum-features)
;; * This enables some tools useful for coding, such as summary mode
;; imenu support, and the semantic navigator
;; (semantic-load-enable-code-helpers)
;; * This enables even more coding tools such as intellisense mode
;; decoration mode, and stickyfunc mode (plus regular code helpers)
;;(semantic-load-enable-gaudy-code-helpers)
(global-set-key [(meta return)] 'semantic-complete-analyze-inline)
(require 'semantic-ia)
(require 'semanticdb)
(global-semanticdb-minor-mode 1)
;; Block confusing display
;; (global-semantic-stickyfunc-mode)
;; * This enables the use
;; of Exuberent ctags if you have it installed.
;; If you use C++ templates or boost, you should NOT enable it.
;; (semantic-load-enable-all-exuberent-ctags-support)
;; Or, use one of these two types of support.
;; Add support for new languges only via ctags.
;; (semantic-load-enable-primary-exuberent-ctags-support)
;; Add support for using ctags as a backup parser.
;; (semantic-load-enable-secondary-exuberent-ctags-support)
;; Enable SRecode (Template management) minor-mode.
;; (global-srecode-minor-mode 1)
;; Eassist.el [2009-10-30]
(when window-system
(require 'eassist)
(defun my-c-mode-common-hook ()
(define-key c-mode-base-map (kbd "M-o") 'eassist-switch-h-cpp)
(define-key c-mode-base-map (kbd "M-m") 'eassist-list-methods))
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(add-hook 'java-mode-common-hook 'my-c-mode-common-hook))