Hello,

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

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

How can I do ?

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

Richard Grin
[EMAIL PROTECTED]

Reply via email to