在 Snow Leopard 的 Carbon Emacs 中安装 jdee 时遇到问题
我最近决定尝试使用emacs进行java开发,所以这是我第一次使用emacs。我在 emacs 启动时没有收到任何错误,但我认为 jde 安装不正确,因为在查看 java 文件时没有看到“jde”菜单项。关于如何进一步排除故障有什么建议吗?
我下载了 cedet、jde 和 elib 并将其提取到以下目录结构中:
~/.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)
I recently decided to try emacs for java development, so this is the first time I've used emacs. I'm not getting any error on emacs startup, but I don't think jde is installed correctly because I don't see a "jde" menu item when viewing java files. Any suggestions on how I can troubleshoot further?
I downloaded and extracted cedet, jde, and elib into the following dir structure:
~/.emacs.d/site/cedet/latest
~/.emacs.d/site/jde/latest
~/.emacs.d/stie/elib/latest
In each case 'latest' is a symlink to a versioned dir, for example:
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/
Here's my .emacs file:
; 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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现 emacs 将启动日志消息写入 Messages 缓冲区。一旦发现这一点,我意识到当它尝试加载 .emacs 文件中定义的某些内容时会出现一些问题。
我能够使 cedet 和 ecb 成功工作,但在尝试加载 jde 时仍然出现 lisp 错误。
I figured out that emacs writes start-up log messages to a Messages buffer. Once I found that, I realized that there are some problems when it tries to load some things defined in my .emacs file.
I was able to get cedet and ecb working successfully but still getting lisp errors when trying to load jde.