我最近决定尝试使用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在每种情况下,'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)发布于 2009-12-05 20:59:28
我发现emacs会将启动日志消息写入消息缓冲区。一旦我发现了这一点,我意识到当它试图加载我的.emacs文件中定义的一些东西时,会出现一些问题。
我能够让cedet和ecb成功地工作,但在尝试加载jde时仍然得到lisp错误。
https://stackoverflow.com/questions/1851973
复制相似问题