I'd like to work without a prj.el file and still be
able to maintain my JDE customization between
sessions.
If I exit NT emacs and load a .java file all my
setting are gone. Once I have the java file loaded I
make may customizations from the JDE-Options menu
item, saving for the current session and for future
use. My .emacs file is included below. Things work
fine after this, until I load another .java file and I
have to reconfigure.
Thanks in advance,
Alex
-------------------------------------------------------
;; This .emacs file illustrates the minimul setup
;; required to run the JDE.
;; Update the Emacs load-path to include the path to
;; the JDE. This code assumes that you have installed
;; the JDE in the specified subdirectory of your home
;; directory.
(setq load-path
(nconc
'(
"c:/emacs-20.3.1/site-lisp/jde-2.1.4"
)
load-path))
;; Tell Emacs to load the entire JDE package at
startup (only once).
(require 'jde)
;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
(setq c-basic-offset 2))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
(setq indent-tabs-mode nil)
;; Include the following only if you want to run
;; bash as your shell.
;; Setup Emacs to run bash as its primary shell.
(setq binary-process-input t)
(setq shell-file-name "bash")
(setq explicit-shell-file-name shell-file-name)
(setenv "SHELL" shell-file-name)
(setq explicit-sh-args '("-login" "-i"))
(setq w32-quote-process-args ?\")
;; Configure Emacs to use the default browser on your
system
;; to display the JDE documentation.
(defvar shell-execute-helper "shelex.exe")
(defun shell-execute-url (url &optional new-window)
"Invoke the shell-execute-helper program to call
ShellExecute and launch
or re-direct a web browser on the specified url."
(interactive "sURL: ")
(call-process shell-execute-helper nil nil nil
url))
(setq browse-url-browser-function 'shell-execute-url)
;; Configure Emacs to use a separate window for
*compilation* results
(setq special-display-buffer-names
'("*compilation*"))
;; generic-mode (for BAT, INI, etc. files) setup
(require 'generic-x)
(setq auto-mode-alist
(append
(list (cons "\\.cmd$" 'bat-generic-mode))
(list (cons "\\.properties$"
'java-properties-generic-mode))
auto-mode-alist))
(custom-set-variables
'(jde-compile-option-sourcepath (quote ("x:/s12"
"c:/jdk1.2/src")))
'(jde-db-option-classpath (quote ("x:/s12"
"c:/jgl3.1.0/lib/jgl3.1.0.jar")))
'(jde-compile-option-classpath (quote ("x:/s12"
"c:/jgl3.1.0/lib/jgl3.1.0")))
'(jde-run-option-vm-args (quote
("-Djava.compiler=NONE")))
'(jde-run-option-classpath (quote ("x:/s12"
"c:/jgl3.1.0/lib/jgl3.1.0.jar")))
'(jde-run-java-vm "java")
'(jde-run-java-vm-w "javaw"))
(custom-set-faces)
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com