[求助]emacs配置java进入jde模式问题.
发表于 : 2009-12-05 6:49
代码: 全选
;; 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.
;; 加载所需的package
(add-to-list 'load-path (expand-file-name "~/myconf/java/cedet-1.0pre6/semantic"))
(add-to-list 'load-path (expand-file-name "~/myconf/java/cedet-1.0pre6/speedbar"))
(add-to-list 'load-path (expand-file-name "~/myconf/java/cedet-1.0pre6/eieio"))
(add-to-list 'load-path (expand-file-name "~/myconf/java/jde-2.3.5.1/lisp"))
(add-to-list 'load-path (expand-file-name "~/myconf/java/elib-1.0"))
;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
;; 不自动加载jde-mode
(setq defer-loading-jde t)
;; to read:
;;
;; (setq defer-loading-jde t)
;;
;; 编辑.java文件时加载jde
(if defer-loading-jde
(progn
(autoload 'jde-mode "jde" "JDE mode." t)
(setq auto-mode-alist
(append
'(("\\.java\\'" . jde-mode))
auto-mode-alist)))
(require 'jde))
右侧新开窗口出现
Debugger entered--Lisp error: (wrong-number-of-arguments #[(form val type) "\305!\2032
java文件没有被显示
还有补全的问题.怎么弄.
比如:JP补全能出JPanel.