我最近决定尝试Emacs来进行Java开发,所以这是我第一次使用Emacs。我不会在Emacs启动上出错,但我认为JDE安装不正确,因为在查看Java文件时,我看不到“JDE”菜单项。关于如何进一步排除故障有什么建议吗?
我下载并将cedet、jde和elib提取到以下dir结构中:
~/.emacs.d/site/cedet/latest
~/.emacs.d/site/jde/latest
~/.emacs.d/stie/elib/latest
在每种情况下,“最新”都是指向版本化目录的符号链接,例如:
cd ~/.emacs.d/site/cedet
ls -al
drwxr-xr-x@ 17 dparoulek staff 578 Dec 4 12:17 cedet-1.0pre6
lrwxr-xr-x 1 dparoulek staff 14 Dec 4 21:41 latest -> cedet-1.0pre6/
这是我的.emacs文件:
; JDE - Java Development Environment
;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)
;; Update the Emacs load-path to include the path to
;; the JDE and its require packages. This code assumes
;; that you have installed the packages in the emacs/site
;; subdirectory of your home directory.
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site/jde/latest/lisp"))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site/cedet/latest/common"))
(load-file (expand-file-name "~/.emacs.d/site/cedet/latest/common/cedet.el"))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site/elib/latest"))
(require 'jde)