欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

Emacs 的java配置,让其支持语法高亮和自动提示,emacs高亮,Emacs 的java配

来源: javaer 分享于  点击 28774 次 点评:44

Emacs 的java配置,让其支持语法高亮和自动提示,emacs高亮,Emacs 的java配


Emacs 的java配置,让其支持语法高亮和自动提示,需要下载jdee包,请直接Google。。

emacs java

;;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 "~/.emacs.d/plugins/elib-1.0")(add-to-list 'load-path "~/.emacs.d/plugins/semantic-1.4.3")(add-to-list 'load-path "~/.emacs.d/plugins/speedbar-0.14beta4")(add-to-list 'load-path "~/.emacs.d/plugins/eieio-0.17")(add-to-list 'load-path "~/.emacs.d/plugins/jdee/lisp");; 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:;; 编辑.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));;#####################################################################;;(load "jde")(setq jde-web-browser "netscape")(setq jde-doc-dir "C:/Java/jdk1.6.0_22/docs/")(jde-db-set-source-paths "C:/Java/jdk1.6.0_22/src/;D:/data1/java/");;(setq shell-file-name "bash");;(setq shell-command-switch "-c");; prj.el;; Class path setting(setenv "CLASSPATH" ".;C:/Java/jdk1.6.0_22/src/;D:/data1/javaclass/;C:/Java/jdk1.6.0_22/lib/");; Compile options(jde-set-compile-options "-d \"D:/data1/java\" -debug");; Application's main class(jde-run-set-app "foo.main");; Source paths(jde-db-set-source-paths "C:/Java/jdk1.6.0_22/src/;D:/data1/java/")
相关栏目:

用户点评