At 08:16 PM 12/8/99 -0500, Salman Ahmed wrote:
>
>One configuration question on JDE-2.1.6: Is there any way have JDE
>loaded up for the *FIRST* time when a .java file is opened for the first
>time in an XEmacs window ??
>
>Currently, I have the following in my .emacs file for JDE:
>(setq load-path (cons (expand-file-name "~/jde-2.1.6beta13/lisp") load-path))
>(require 'jde)
>
>
>But that causes XEmacs to take its time when starting up even when I am
>not running JDE or editing a Java file, and since I use XEmacs for both
>email and news, this delay is quite noticeable.
>
>Is there any other way to have JDE initialize/load when a Java file is
>opened for the first time ?
>
>Thanks for any suggestions, tips.
>
>--
Put the following in your .emacs file:
(setq auto-mode-alist
(append
'(("\\.java\\'" . jde-mode))
auto-mode-alist))
(autoload 'jde-mode "jde" "Java Development Environment for Emacs" t)
- Paul