Chinaunix首页 | 论坛 | 博客
  • 博客访问: 222356
  • 博文数量: 136
  • 博客积分: 2919
  • 博客等级: 少校
  • 技术积分: 1299
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-11 09:08
文章分类

全部博文(136)

文章存档

2013年(1)

2011年(135)

我的朋友

分类: LINUX

2011-03-11 13:23:34

1. Install related packages:
$ sudo apt-get install jde cedet ecb elib
2. Edit ~.emacs as follows:
;;; for java
;; setting jdk path
'(jde-jdk-registry (quote (("1.6.0_17" . "/usr/local/jdk1.6.0_17")))) 
;; Java Development Enviroment 
(add-to-list 'load-path (expand-file-name "/usr/share/emacs23/lisp/jde/lisp")) 
(add-to-list 'load-path (expand-file-name "/usr/share/emacs23./site-lisp/cedet-common")) 
(add-to-list 'load-path (expand-file-name "/usr/share/emacs23/site-lisp/elib")) 
(add-to-list 'load-path (expand-file-name "/usr/share/emacs23/site-lisp/ecb")) 
(load-file (expand-file-name "/usr/share/emacs23/site-lisp/cedet-common/cedet.el")) 
(load-file (expand-file-name "/usr/share/emacs/site-lisp/ecb/ecb.el")) 
;;------------------------------------------------------------------------------ 
;;(add-hook 'java-mode-hook 'turn-on-font-lock) 
(require 'font-lock) 
(require 'cedet) 
(require 'ecb) 
(require 'ecb-autoloads) 
(require 'jde) 



阅读(547) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~