分页: 1 / 1

[求助]emacs配置java进入jde模式问题.

发表于 : 2009-12-05 6:49
wgf4242

代码: 全选

;; 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))

打开java文件后

右侧新开窗口出现
Debugger entered--Lisp error: (wrong-number-of-arguments #[(form val type) "\305!\2032
java文件没有被显示

还有补全的问题.怎么弄.
比如:JP补全能出JPanel.

Re: [求助]emacs配置java进入jde模式问题.

发表于 : 2009-12-05 10:21
wgf4242
我感觉按这个速度来调整Emacs好慢啊.不知道何时能把Emacs调整的顺手些.
反倒是Vim的东西按搜索得来的信息基本上大部分可以搞定了.(当然用做文本编辑器现在是可以了,可是写java,C++还是需要自动补全,taglist这类东西的.)

搜Emacs和java得来的东西按上面弄还是有问题.
用了gVim和Emacs感觉还是喜欢Emacs多一些.真不想因为一些小问题而影响使用Emacs.

有没有人多一些的讨论区.