刚升级了一下我的arch,emacs由23升级到了24,升级后发现很多插件出问题了,包括cedet、ecb和jdee等,在Google搜了一小时,终于把问题给解决了。下面就把解决的方法分享出来,希望对大家有所帮助。
1. cedet
这个问题比较好解决,升级到1.1就能和emacs 24兼容。
2. ecb
ecb已多年没更新了,最新的ecb-2.40只兼容cedet版本 1.0.6pre ~ 1.0.9,解决的方法是修改/path/to/ecb-2.40/ecb-upgrade.el,将1146行的
(defconst ecb-required-cedet-version-max '(1 0 4 9))
改为
(defconst ecb-required-cedet-version-max '(1 1 4 9))
这样就OK了。
3. jdee
问题之一也是jdee不兼容cedet 1.1,解决方法同ecb,修改支持的最大版本号,修改/path/to/jdee-2.4.0.1/lisp/jde.el文件,将43行的
(defconst jde-cedet-max-version "1.0"
修改为
(defconst jde-cedet-max-version "1.1"
然后删除/path/to/jdee-2.4.0.1/lisp/jde.elc,如果想编译jde.elc,可以打开emacs,输入M-x byte-compile-file,文件是/path/to/jdee-2.4.0.1/lisp/jde.el,如果编译成功就会生成jde.elc。
另外的问题是jdee使用了emacs 24不再支持的函数,解决方法是在~/.emacs文件中添加以下内容:
(defun screen-width nil -1) (define-obsolete-function-alias 'make-local-hook 'ignore "21.1")
4. done
完成以上三步就大功告成,又可以使用emacs来写java程序了。
如果有问题,欢迎批评指正。
5. 参考资料
相关推荐
emacs ecb cedet源码包 包括: emacs-23.4.tar.gz emacs-24.3.tar.gz ecb-2.40.zip cedet-1.0.1.tar.gz cedet-1.1.tar.gz
cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb .emacs cedet ecb ....
emacs 配置(cedet, ecb, yasnipped),改键工具
EMACS 23.1 CEDET 1.0pre7 ECB 2.33 cscope 15.7 诸多其他插件及优化配置 使用方法: 覆盖Emacs安装目录下的site-lisp文件夹 然后在C盘根目录建立一个.emacs文件,文件的内容为: (require 'examyes-main)
本配置文件基于网上提供的其他配置文件进行修改。 支持: emacs 24 +cedet 1.1 +ecb 2.40 源配置文件下载地址: http://download.csdn.net/detail/karotte/3812760
Emacs版本:23.2.1 操作系统:RedHat AS 5.4 将该cedet-1.0和ecb-2.32解压后, 通过修改.emacs文件来加载cedet和ecb即可
2、适用于windows emacs23.1的cedet 3、ecb 4、distel(for erlang) 具有的功能: 1、隐藏工具栏、滚动条 2、自动保存会话(desktop) 3、颜色主题(color-theme) 4、启动时窗口最大化(maxtheme) 5、erlang-...
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....
docker-vscode:具有Visual Studio Code + Dotnet CLI + NPM + Emacs +的... docker-vscode:具有Visual Studio Code + Dotnet CLI + NPM + Emacs +的Docker映像! docker-vscode:具有Visual Studio Code + ...
emacs lisp with autocomplete cedet company doxymacs ecb yasnippet etc.
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....
爵士主题:Emacs 24+的深色主题
本压缩包包括了:living in emacs, survive in emacs & gnu emacs pocket referrence. 希望大家喜欢
个人emacs配置,ecb, cedet, c++, dot emacs, speeder 用于平时备份使用。
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....
GNUemacs+JDEE,可以使你的JAVA编程更轻松,至于JDEE是什么,想必每一个要下载它的人都很清楚,小编就不再赘述了,你们都懂得。注:本软件源自官网,欢迎大家下载!
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....
Learning_GNU_Emacs_Third_Edition.chm Linux.Commands.Editors.and.Shell.Programming.chm Managing+Projects+with+GNU+Make.pdf O'Reilly.Bash.Cookbook.May.2007.pdf Prentice.Hall.Linux.Debugging.and....