hi,

I think there are users who just need the compile and run
commands from the jde.

this is a simple ("nanojde") approach:

;; java helpers
;; put this in your ~/.emacs (or ~/_emacs):
(add-hook 'java-mode-hook '(lambda() "My java-mode hook" t
                             (define-key java-mode-map "\C-c\C-v\C-c"
                               '(lambda() (interactive)
                                  (compile
                                   (concat "javac -g -deprecation "
                                           (file-name-nondirectory
                                            buffer-file-name)))))
                             (define-key java-mode-map "\C-c\C-v\C-r" 
                               '(lambda() (interactive)
                                  (compile (concat "java "
                                                   (file-name-nondirectory
                                                    (file-name-sans-extension 
                                                     buffer-file-name))))))
                             ))
(http://www.ndh.net/home/natter/nanojde.el)


here is a file which contains only the jde-compile and jde-run commands
from jde-2.2.8 ("microjde"):
http://www.ndh.net/home/natter/microjde.el

so maybe some of this can be improved and put in the contrib-section ?

-- 
Felix Natter

Reply via email to