When installing jde, I tried to make install, but it gave me texinfo errors, so in the end i just symlinked the jde-2.3.3 java and lisp directories into my ~/emacs/site/jde directory. (I'm not sure if that would be a problem)
I've also installed overlay-fix.el, more in hope than expectation: I'm running the latest version of semantic.
In the Messages window, I get this: (full startup messages are at the end of the email).
jde-java-font-lock: building name cache...
jde-java-font-lock: building name cache...empty
and then when fontifying a buffer, I get. Fontifying MyClass.java... Fontifying MyClass.java... (syntactically....)
Thanks for any pointers you could provide me!
James.
My .emacs is:
;;; XEmacs backwards compatibility file (setq user-init-file (expand-file-name "init.el" (expand-file-name ".xemacs" "~"))) (setq custom-file (expand-file-name "custom.el" (expand-file-name ".xemacs" "~")))
(load-file "~/cedet-1.0beta2b/common/cedet.el")
(add-to-list 'load-path (expand-file-name "~/emacs/site/jde/lisp")) (add-to-list 'load-path (expand-file-name "~/emacs/site/elib"))
(load-file user-init-file) (load-file custom-file)
;;(require 'quack) (require 'jde) (require 'jde-ant) ;;(require 'jde-java-font-lock) (load-file (expand-file-name "~/emacs/site/overlay-fix.el")) (defun my-jde-mode-hook () (setq c-basic-offset 2) (c-set-offset 'substatement-open 0) ; this is the one you care about (c-set-offset 'statement-case-open 0) (c-set-offset 'case-label '+) (setq tab-width 2 ;; make sure spaces are used instead of tabs indent-tabs-mode nil) (message "my-jde-mode-hook function executed"))
(add-hook 'jde-mode-hook 'my-jde-mode-hook) (global-font-lock-mode 1)
Startup messages are:
Loading 50speedbar (source)...done Loading 50w3m-el (source)... Loading 50w3m-el (source)...done Loading /home/james/cedet-1.0beta2b/common/cedet.el (source)... Loading backquote... Loading backquote...done "/home/james/cedet-1.0beta2b/common/" added to `load-path' Loading cl-macs... Loading cl-macs...done "/home/james/cedet-1.0beta2b/cogre" added to `load-path' "/home/james/cedet-1.0beta2b/ede" added to `load-path' "/home/james/cedet-1.0beta2b/eieio" added to `load-path' "/home/james/cedet-1.0beta2b/semantic" added to `load-path' Loading advice... Loading advice...done Loading font-lock... Loading cus-face... Loading cus-face...done Loading regexp-opt... Loading regexp-opt...done Loading font-lock...done "/home/james/cedet-1.0beta2b/speedbar" added to `load-path' "/home/james/cedet-1.0beta2b/contrib" added to `load-path' Loading /home/james/cedet-1.0beta2b/common/cedet.el (source)...done Loading /home/james/.xemacs/init.el (source)... Loading /home/james/.xemacs/init.el (source)...done Loading /home/james/.xemacs/custom.el (source)... Loading /home/james/.xemacs/custom.el (source)...done Loading derived... Loading derived...done Loading easymenu... Loading easymenu...done Loading wid-browse... Loading wid-browse...done Loading cl-extra... Loading cl-extra...done Loading timer... Loading timer...done jde-java-font-lock: building names cache... jde-java-font-lock: building names cache...empty Loading cl-seq... Loading cl-seq...done Setting JDE variables to startup values... Loading /home/james/emacs/site/overlay-fix.el (source)... Loading /home/james/emacs/site/overlay-fix.el (source)...done For information about the GNU Project and its goals, type C-h C-p. Fontifying *scratch*... Fontifying *scratch*... (regexps............) For information about the GNU Project and its goals, type C-h C-p. Beginning of buffer