Hi,

I have been off doing PL/SQL and Perl/C stuff for a while but now I'm back
to doing some Java development. I downloaded the jde-2.2.8beta4 and now 
I don't have any syntax hightlighting. BTW, I have overlay-fix because of 
early problems of color highlighting.

Here are the revelant version installed
ecb-1.41/
eieio-0.16/
elib-1.0/
jde-2.2.8beta4/
semantic-1.4beta7/

Here the entries from .emacs relevant to JDEE

(setq load-path (cons (expand-file-name "~/.elisp/speedbar") load-path))
(setq load-path (cons (expand-file-name "~/.elisp/semantic") load-path))
(setq load-path (cons (expand-file-name "~/.elisp/elib") load-path))
(setq load-path (cons (expand-file-name "~/.elisp/ecb") load-path))
(setq load-path (cons (expand-file-name "~/.elisp/eieio") load-path))
(setq load-path
      (append load-path
            (mapcar 'expand-file-name
                '("~/.elisp/"
                  "~/.elisp/javatools"
                  "~/.elisp/jde/lisp"))))
;;---------------------------------------------------------------------
;; Java IDE
;;---------------------------------------------------------------------

;The semantic bovinator is a highly recursive parser. The more complicated
;the Java file, the more it recurses. It can easily exceed Emacs'
;conservative limit on recursion. The following helps for larger files.
(setq max-specpdl-size 1000)

;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
;;(setq defer-loading-jde nil)
;; to read:
;;
(setq defer-loading-jde t)
;;

(if defer-loading-jde
    (progn
      (autoload 'jde-mode "jde" "JDE mode." t)
      (setq auto-mode-alist
    (append
     '(("\\.java\\'" . jde-mode))
     auto-mode-alist)))
(require 'jmaker)
(require 'jde)

;; semantic was turning off some of the colors. This seems to fix it
(require 'overlay-fix)

 custom indentation style
 (defun jde-mode-mods ()
   (c-set-offset 'topmost-intro-cont 0 t)
   (setq c-comment-continuation-stars "* ")
   (c-set-offset 'statement-block-intro 1 t) ; offset text in blocks
   (setq c-indent-comments-syntactically-p nil)
   (setq c-basic-offset 3)               ; set default indentation amount
   )

 (add-hook 'jde-mode-hook 'jde-mode-mods)

 (custom-set-variables
  '(jde-auto-parse-enable nil)
  '(jde-gen-k&r nil)
  '(jde-which-method-mode nil)
  '(jde-enable-abbrev-mode t))

 (make-local-variable 'font-lock-defaults)
 (setq font-lock-defaults (cdr (assoc 'java-mode font-lock-defaults-alist)))
 (turn-on-font-lock)
)

Any advice of what to try next would be appreciated.

John Syre

Reply via email to