-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el~
173 lines (142 loc) · 6.21 KB
/
init.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
;;(load-theme 'deeper-blue)
;;;;;;;;CEDET;;;;;;;;
;; minimial-cedet-config.el --- Working configuration for CEDET from bzr
;; Copyright (C) Alex Ott
;;
;; Author: Alex Ott <[email protected]>
;; Keywords: cedet, C++, Java
;; Requirements: CEDET from bzr (http://cedet.sourceforge.net/bzr-repo.shtml)
;; Do checkout of fresh CEDET, and use this config (don't forget to change path below)
(setq cedet-root-path (file-name-as-directory "~/.emacs.d/plugins/cedet-bzr/trunk/"))
(load-file (concat cedet-root-path "cedet-devel-load.el"))
(add-to-list 'load-path (concat cedet-root-path "contrib"))
;; select which submodes we want to activate
(add-to-list 'semantic-default-submodes 'global-semantic-mru-bookmark-mode)
(add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-idle-scheduler-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-idle-completions-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-idle-summary-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-stickyfunc-mode)
(add-to-list 'semantic-default-submodes 'global-cedet-m3-minor-mode)
(add-to-list 'semantic-default-submodes 'global-semantic-highlight-func-mode)
(add-to-list 'semantic-default-submodes 'global-semanticdb-minor-mode)
;; Activate semantic
(semantic-mode 1)
;; load contrib library
(require 'eassist)
;;NK: suppose to enable more advanced name copledtion functionality (haven't noticed a difference yet)
(require 'semantic/ia)
;;NK : suppose to include standard libraries when working with GCC compiler
(require 'semantic/bovine/gcc)
;;NK : how to add system files to look for
(semantic-add-system-include "/usr/lib" 'c++-mode)
;; 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)
)
(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)
(semanticdb-enable-gnu-global-databases 'c-mode t)
(semanticdb-enable-gnu-global-databases 'c++-mode t)
(when (cedet-ectag-version-check t)
(semantic-load-enable-primary-ectags-support))
;; SRecode
(global-srecode-minor-mode 1)
;; EDE
(global-ede-mode 1)
(ede-enable-generic-projects)
;;; minimial-cedet-config.el ends here
;;;;;;;;CEDET end;;;;;;;;
;;;;;;;;ECB;;;;;;;;
(add-to-list 'load-path "~/.emacs.d/plugins/ecb-master/")
;;(require 'ecb)
;;If you want to load the complete ECB at (X)Emacs-loadtime
;;(Advantage: All ECB-options available after loading ECB. Disadvantage: Increasing loadtime2):
(require 'ecb)
;;;;;;;;ECB end;;;;;;;;
;;;;;;;;auto-complete;;;;;;;;
;;Enable default auto complete
(add-to-list 'load-path "~/.emacs.d/plugins/auto_complete/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/auto_complete//ac-dict")
(ac-config-default)
;;;;;;;;auto-complete end;;;;;;;;
;;;;;;;;AUTO-GENERATED;;;;;;;;
(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.
'(ecb-options-version "2.40")
'(ede-project-directories (quote ("c:/nickolay/emacs_project"))))
(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.
)
;;;;;;;;AUTO-GENERATED;;;;;;;;
;;;;;;;color-theme;;;;;;;;
(add-to-list 'load-path "~/.emacs.d/plugins/color-theme-6.6.0/")
;; (require 'color-theme)
;; (eval-after-load "color-theme"
;; '(progn
;; (color-theme-initialize)
;; (color-theme-hober)))
;;;;;;;color-theme end;;;;;;;;
;;;;;;;;son-of-obsidean-color-theme;;;;;;;;
(eval-when-compile
(require 'color-theme))
(defun color-theme-sons-of-obsidian ()
"Famous Visual Studio Color Theme Sons of Obsidian by Troydm 2011-05"
(interactive)
(color-theme-install
'(color-theme-sons-of-obsidian
((background-color . "#333")
(background-mode . dark)
(border-color . "#1a1a1a")
(cursor-color . "white")
(foreground-color . "#eeeeec")
(mouse-color . "white"))
(default ((t (:background "#333" :foreground "#ddd"))))
(fringe ((t (:background "#1a1a1a"))))
(mode-line ((t (:foreground "#eeeeec" :background "#555753"))))
(region ((t (:background "#575757"))))
(font-lock-builtin-face ((t (:foreground "#afc8e4"))))
(font-lock-constant-face ((t (:foreground "#eeeeec"))))
(font-lock-comment-face ((t (:foreground "#888a85"))))
(font-lock-doc-string-face ((t (:foreground "#9b859d"))))
(font-lock-function-name-face ((t (:foreground "#ffffff"))))
(font-lock-keyword-face ((t (:foreground "#7ab847"))))
(font-lock-string-face ((t (:foreground "#e08d00"))))
(font-lock-type-face ((t (:foreground"#729aca"))))
(font-lock-reference-face ((t (:foreground "8b98ab"))))
(font-lock-variable-name-face ((t (:foreground "#eeeeec"))))
(show-paren-match ((t (:background "#555753"))))
(minibuffer-prompt ((t (:foreground "#a5c8ee" :bold t))))
(font-lock-warning-face ((t (:foreground "Red" :bold t))))
)))
(add-to-list 'color-themes
`(color-theme-sons-of-obsidian
"Sons of Obsidian",
"Dmitry Geurkov <[email protected]>"))
(provide 'color-theme-sons-of-obsidian)
;;;;;;;;son-of-obsidean-color-theme end;;;;;;;;