>>>>> "Richard" == Richard Grin <[EMAIL PROTECTED]> writes:

  Richard> Hello,

  Richard> I would like to load jde only when I work with a java file
  Richard> (not when I work with the other files).

  Richard> I have tried this (I am not an expert with emacs) :
  Richard> --------------------------------------- (add-hook
  Richard> 'java-mode-hook '(lambda () (load "jde") (setq
  Richard> jde-web-browser "netscape") (setq jde-doc-dir
  Richard> "/usr/local/jdk1.2/docs/") (setq jde-db-set-source-paths
  Richard> "/usr/local/jdk1.2/src/;.")  (defvar
  Richard> jde-db-source-directories (list "/usr/local/jdk1.2/src/;.")
  Richard> "*List of source directory paths.  jde-db uses this list to
  Richard> locate source files visited by the debugger while stepping
  Richard> through an application.")  (defun my-jde-mode-hook ()
  Richard> (progn (setq c-basic-offset 2) (message "my-jde-mode-hook
  Richard> function executed"))) (add-hook 'jde-mode-hook
  Richard> 'my-jde-mode-hook) ) )
  Richard> -------------------------------------- But it does not
  Richard> work.

  Richard> How can I do ?

  Richard> Thank you in avdvance for your answer. (Please, send me the
  Richard> answer to my e-mail address).


           Hmm.

           The line "(load "jde")" means "load into memory" and
not as I suspect you think "turn on JDE in this buffer". All you need
to do is to stick "(require 'jde)" into your .emacs and then JDE
should take care of autoloading for you. Similiarly with all of your
settings for jde variables. Custom can take care of this....


         Read http://sunsite.auc.dk/jde "Installing the JDE" for
advice. 


        Phil

Reply via email to