Skip to content

Commit e616a68

Browse files
committed
add jde2.3.6 support.
1 parent 9eb3e16 commit e616a68

File tree

1,195 files changed

+377632
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,195 files changed

+377632
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
/backups
55
*.elc
66
/**/*.elc
7+
**/*.elc
78
.svn
89
tramp

config/25jdee/jdee.el

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
(setq debug-on-error t)
2+
3+
(add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/25jdee/jde/build/lisp"))
4+
(add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/25jdee/cedet/common"))
5+
(load-file (expand-file-name "~/.emacs.d/vendor/25jdee/cedet/common/cedet.el"))
6+
(add-to-list 'load-path (expand-file-name "~/.emacs.d/vendor/25jdee/elib"))
7+
(setq defer-loading-jde t)
8+
(if defer-loading-jde
9+
(progn
10+
(autoload 'jde-mode "jde" "JDE mode." t)
11+
(setq auto-mode-alist
12+
(append
13+
'(("\\.java\\'" . jde-mode))
14+
auto-mode-alist)))
15+
(require 'jde))
16+
17+
(setq semantic-idle-scheduler-idle-time 432000)
18+
19+
(add-hook 'jde-mode-hook 'my-java-mode)
20+
;; 设置imenu的排序方式为按名称排序
21+
(setq imenu-sort-function 'imenu--sort-by-name)
22+
23+
(defun my-java-mode()
24+
;; 将回车代替C-j的功能,换行的同时对齐
25+
(define-key jde-mode-map [return] 'newline-and-indent)
26+
(interactive)
27+
;; 设置C程序的对齐风格
28+
;; (c-set-style "K&R")
29+
;; 自动模式,在此种模式下当你键入{时,会自动根据你设置的对齐风格对齐
30+
;; (c-toggle-auto-state)
31+
;; 此模式下,当按Backspace时会删除最多的空格
32+
(c-toggle-hungry-state)
33+
;; TAB键的宽度设置为4
34+
(setq c-basic-offset 4)
35+
;; 在菜单中加入当前Buffer的函数索引
36+
(imenu-add-menubar-index)
37+
;; 在状态条上显示当前光标在哪个函数体内部
38+
(which-function-mode)
39+
)
40+
41+
;; Setup Emacs to run bash as its primary shell.
42+
(setq shell-file-name "bash")
43+
(setq shell-command-switch "-c")
44+
(setq explicit-shell-file-name shell-file-name)
45+
(setenv "SHELL" shell-file-name)
46+
(setq explicit-sh-args '("-login" "-i"))
47+
(if (boundp 'w32-quote-process-args)
48+
(setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
49+

init.el

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
(my-add-subdirs-to-load-path "~/.emacs.d/vendor")
88
(mapc 'load (directory-files "~/.emacs.d/config/01base" t "\.el$"))
9+
(mapc 'load (directory-files "~/.emacs.d/config/25jdee" t "\.el$"))
910
(mapc 'load (directory-files "~/.emacs.d/config/70emacsonrails" t "\.el$"))
1011
(mapc 'load (directory-files "~/.emacs.d/config/99post" t "\.el$"))

vendor/25jdee/cedet/INSTALL

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
CEDET: Collection of Emacs Development Enviromnent Tools
2+
3+
CEDET is a top-level project containing several individual package for Emacs,
4+
includeing:
5+
6+
EIEIO - CLOS layer for Emacs Lisp
7+
Semantic - Parser Infrastructure for Emacs
8+
Speedbar - Everything browser
9+
EDE - File manager/ Makefile generator
10+
COGRE - Connected Graph Editor
11+
12+
REQUIREMENTS:
13+
14+
The CEDET suite requires either Emacs 21.3 or XEmacs 21.3 or better
15+
for all features to work. Older versions of either will also work
16+
with fewer CEDET features being available.
17+
18+
If you use a binary install of Emacs, you may need the .el
19+
files for Emacs available for some aspects of the build.
20+
21+
INSTALL:
22+
23+
You can install all these packagees at once with the CEDET build and
24+
install scripts:
25+
26+
1) Copy source files somewhere.
27+
28+
2) Byte compile
29+
30+
a) make
31+
32+
-OR-
33+
34+
b) make EMACS=<your favorite emacs>
35+
36+
You might also have trouble with makeinfo. If you need to upgrade
37+
makeinfo, you can do this:
38+
39+
c) make MAKEINFO=/usr/local/bin/makeinfo
40+
41+
Note: For speedbar, you may also need to byte-compile the version
42+
of INFO and RMAIL that come with your version of emacs.
43+
44+
d) make MAKEINFO=echo
45+
46+
To skip making the doc.
47+
48+
2.1) Build Issues
49+
50+
If running MAKE fails due to other issues such as bad load def
51+
files, custom-autoload, incomprehensible run time errors during a byte
52+
compilation, try these steps, then go back to step 2.
53+
54+
a) make clean-autoloads
55+
b) make clean-all
56+
57+
3) Install load hooks into your .emacs file.
58+
59+
-----------
60+
;; Load CEDET
61+
(load-file "~/cedet-VERSION/common/cedet.el")
62+
63+
;; Enabling various SEMANTIC minor modes. See semantic/INSTALL for more ideas.
64+
;; Select one of the following:
65+
66+
;; * This enables the database and idle reparse engines
67+
;;(semantic-load-enable-minimum-features)
68+
69+
;; * This enables some tools useful for coding, such as summary mode
70+
;; imenu support, and the semantic navigator
71+
(semantic-load-enable-code-helpers)
72+
73+
;; * This enables even more coding tools such as the nascent intellisense mode
74+
;; decoration mode, and stickyfunc mode (plus regular code helpers)
75+
;; (semantic-load-enable-guady-code-helpers)
76+
77+
;; * This turns on which-func support (Plus all other code helpers)
78+
;; (semantic-load-enable-excessive-code-helpers)
79+
80+
;; This turns on modes that aid in grammar writing and semantic tool
81+
;; development. It does not enable any other features such as code
82+
;; helpers above.
83+
;; (semantic-load-enable-semantic-debugging-helpers)
84+
-----------
85+
86+
Some items in the contrib directory may need additional study or
87+
installation. Read contrib/INSTALL for specifics on those extra
88+
packages.
89+
90+
4) Configuration:
91+
92+
You can configure how the individual packages load in the above example
93+
by adding settings in the comment section. Please read individual
94+
INSTALL files for each package for details on configuring them.
95+
See the texinfo manuals for details on more specific configurations.
96+
97+
5) To send bug reports, or participate in discussions on these
98+
packages, choose a mailing list:
99+
100+
For Semantic use the mailing list [email protected]
101+
via the URL:
102+
103+
http://lists.sourceforge.net/lists/listinfo/cedet-semantic
104+
105+
For EIEIO use the mailing list [email protected]
106+
via the URL:
107+
108+
http://lists.sourceforge.net/lists/listinfo/cedet-eieio
109+
110+
For general discussions on development of these tools, use the
111+
mailing list [email protected] via the URL:
112+
113+
http://lists.sourceforge.net/lists/listinfo/cedet-devel
114+
115+
OTHER REQUIREMENTS:
116+
117+
You may also need to download some of the following files for more
118+
obscure features.
119+
120+
To use the JavaScript parser:
121+
javascript-mode.el : http://www.emacswiki.org/cgi-bin/wiki/JavaScriptMode
122+
123+
To use the UML chart generation from "M-x semantic-dot":
124+
graphviz dot programs, including "dotty"
125+
http://www.graphviz.org/
126+
127+
To use the graphviz dot parser:
128+
graphviz-dot-mode.el: See the commentary in cogre/wisent-dot.el
129+

vendor/25jdee/cedet/Makefile

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
## Makefile --- Definition file for building CEDET
2+
##
3+
## Copyright (C) 2003, 2004, 2005, 2007 by David Ponce
4+
##
5+
## Author: David Ponce <[email protected]>
6+
## Maintainer: CEDET developers <http://sf.net/projects/cedet>
7+
## Created: 12 Sep 2003
8+
## X-RCS: $Id: Makefile,v 1.14 2007/05/28 00:51:19 zappo Exp $
9+
##
10+
## This program is free software; you can redistribute it and/or
11+
## modify it under the terms of the GNU General Public License as
12+
## published by the Free Software Foundation; either version 2, or
13+
## (at your option) any later version.
14+
##
15+
## This program is distributed in the hope that it will be useful, but
16+
## WITHOUT ANY WARRANTY; without even the implied warranty of
17+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
## GNU General Public License for more details.
19+
##
20+
## You should have received a copy of the GNU General Public License
21+
## along with GNU Emacs; see the file COPYING. If not, write to the
22+
## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23+
## Boston, MA 02110-1301, USA.
24+
25+
######## You can customize this part of the Makefile ########
26+
27+
## The directory where CEDET is installed
28+
CEDET_HOME="$(CURDIR)"
29+
30+
## The CEDET's packages installed
31+
CEDET_PACKAGES=\
32+
common \
33+
ede \
34+
speedbar \
35+
eieio \
36+
semantic \
37+
cogre \
38+
contrib
39+
40+
## Path to your Emacs
41+
EMACS=emacs
42+
43+
## Your shell (On Windows/Cygwin I recommend to use bash)
44+
#SHELL=bash
45+
46+
## Path to your find and rm commands
47+
FIND=find
48+
#RM = rm -f
49+
50+
############### Internal part of the Makefile ###############
51+
CEDET_VERSION=$(shell grep "defconst cedet-version" common/cedet.el | cut -d " " -f 3)
52+
53+
CEDET_FILES=Makefile INSTALL cedet-update-version.el PRERELEASE_CHECKLIST USING_CEDET_FROM_CVS
54+
DIST_ROOT=cedet-$(CEDET_VERSION)
55+
DIST_DIR=$(CEDET_HOME)/$(DIST_ROOT)
56+
DIST_FILE=$(DIST_DIR).tar.gz
57+
58+
__BUILD_AUTOLOADS=$(patsubst %,%-autoloads,$(CEDET_PACKAGES))
59+
__CLEAN_AUTOLOADS=$(patsubst %,clean-%,$(__BUILD_AUTOLOADS))
60+
__DOMAKE=$(MAKE) $(MFLAGS) EMACS="$(EMACS)" SHELL="$(SHELL)"
61+
62+
## Build
63+
##
64+
65+
all: clean-autoloads packages
66+
67+
bootstrap: clean-all packages
68+
69+
packages: $(CEDET_PACKAGES)
70+
71+
.PHONY: $(CEDET_PACKAGES)
72+
$(CEDET_PACKAGES):
73+
cd $(CEDET_HOME)/$@ && $(__DOMAKE)
74+
75+
## Update
76+
##
77+
78+
autoloads: $(__BUILD_AUTOLOADS)
79+
80+
.PHONY: $(__BUILD_AUTOLOADS)
81+
$(__BUILD_AUTOLOADS):
82+
cd $(CEDET_HOME)/$(firstword $(subst -, ,$@)) && \
83+
$(__DOMAKE) autoloads
84+
85+
recompile: autoloads
86+
cd $(CEDET_HOME) && \
87+
"$(EMACS)" -batch -q --no-site-file -l common/cedet.el \
88+
-f batch-byte-recompile-directory $(CEDET_PACKAGES)
89+
90+
## Cleanup
91+
##
92+
93+
clean-autoloads: $(__CLEAN_AUTOLOADS)
94+
95+
.PHONY: $(__CLEAN_AUTOLOADS)
96+
$(__CLEAN_AUTOLOADS):
97+
$(FIND) $(CEDET_HOME)/$(word 2,$(subst -, ,$@)) -type f \
98+
-name "*-loaddefs.el" \
99+
-print -exec $(RM) {} \;
100+
101+
.PHONY: clean-grammars
102+
clean-grammars:
103+
$(FIND) $(CEDET_HOME) -type f -name "*-[bw]y.el" \
104+
! -name "semantic-grammar-wy.el" \
105+
-print -exec $(RM) {} \;
106+
107+
.PHONY: clean-info
108+
clean-info:
109+
$(FIND) $(CEDET_HOME) -type f -name "*.info*" \
110+
-print -exec $(RM) {} \;
111+
112+
.PHONY: clean-elc
113+
clean-elc:
114+
$(FIND) $(CEDET_HOME) -type f -name "*.elc" \
115+
-print -exec $(RM) {} \;
116+
117+
.PHONY: clean
118+
clean:
119+
$(FIND) $(CEDET_HOME) -type f \( -name "*-script" -o -name "*~" \) \
120+
-print -exec $(RM) {} \;
121+
122+
clean-all: clean clean-elc clean-info clean-grammars clean-autoloads
123+
124+
## Build a distribution file.
125+
dist: # $(CEDET_PACKAGES)
126+
rm -rf $(DIST_DIR)
127+
mkdir $(DIST_DIR)
128+
cp $(CEDET_FILES) $(DIST_DIR)
129+
for package in ${CEDET_PACKAGES}; do \
130+
make -C $$package $(MFLAGS) DISTDIR=$(DIST_DIR)/$$package dist; \
131+
done;
132+
tar -cvzf $(DIST_FILE) $(DIST_ROOT)
133+
rm -rf $(DIST_DIR)
134+
135+
testvar:
136+
@echo "$(TESTVAR)=$($(TESTVAR))"
137+
138+
# Makefile ends here

0 commit comments

Comments
 (0)