I've been reorganizing my .emacs and getting my C mode configured how I
want it and now JDE (2.1.5) is no longer working for java files. In my
.emacs I've got:

;; JDE mode
(setq load-path
      (nconc '( 
               "/usr/local/jde-2.1.5/"
              ) 
              load-path))
(require 'jde)

;; C/C++ mode
(defconst my-c-style
  '(
    (c-echo-syntactic-information-p . t)
    (c-basic-offset                 . 2)
    (c-toggle-auto-state            . t)
    (c-offsets-alist .
                     ((string                . +)
                      (c                     . +)
                      (defun-open            . 0)
                      (defun-close           . 0)
                      (defun-block-intro     . +)
                      (class-open            . 0)
                      (class-close           . 0)
                      (inline-open           . 0)
                      (inline-close          . 0)
                      (extern-lang-open      . 0)
                      (extern-lang-close     . 0)
                      (func-decl-cont        . +)
                      (knr-argdecl-intro     . +)
                      (knr-argdecl           . +)
                      (topmost-intro         . 0)
                      (topmost-intro-cont    . +)
                      (member-init-intro     . +)
                      (member-init-cont      . +)
                      (inher-intro           . +)
                      (inher-cont            . +)
                      (block-open            . 0)
                      (block-close           . 0)
                      (brace-list-open       . 0)
                      (brace-list-close      . 0)
                      (brace-list-intro      . +)
                      (brace-list-entry      . 0)
                      (statement             . 0)
                      (statement-cont        . +)
                      (statement-block-intro . +)
                      (statement-case-intro  . +)
                      (statement-case-open   . 0)
                      (substatement          . +)
                      (substatement-open     . 0)
                      (case-label            . 0)
                      (access-label          . -)
                      (label                 . 0)
                      (do-while-closure      . 0)
                      (else-clause           . 0)
                      (catch-clause          . 0)
                      (comment-intro         . 0)
                      (arglist-intro         . +)
                      (arglist-cont          . 0)
                      (arglist-cont-nonempty . +)
                      (arglist-close         . +)
                      (stream-op             . +)
                      (inclass               . +)
                      (inextern-lang         . +)
                      (cpp-macro             . 0)
                      (friend                . 0)
                      (objc-method-intro     . +)
                      (objc-method-args-cont . +)
                      (objc-method-call-cont . +)
                      ))
    
    (c-comment-only-line-offset . (0 . -1000))
    (c-hanging-braces-alist     . ((substatement-open after)
                                   (brace-list-open)))
    (c-hanging-colons-alist     . ((member-init-intro before)
                                   (inher-intro)
                                   (case-label after)
                                   (label after)
                                   (access-label after)))
    (c-cleanup-list             . ((scope-operator
                                    empty-defun-braces
                                    defun-close-semi)))
    ) 
  "Jamie's Programming Style")

(defun my-c-mode-common-hook ()
  (c-add-style "jamie" my-c-style t)
  (c-set-offset 'member-init-intro '+)
  (setq tab-width 4
        indent-tabs-mode nil)
  (c-toggle-auto-hungry-state t)
  (define-key c-mode-base-map "\C-m" 'newline-and-indent)
  )

(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

And now JDE no work for .java files. I guess it's something to do with this
last line, as if I remove that then JDE starts working again - although I
loose my style for both Java and C.

As you can guess, I'm only just starting out with emacs so it's probably
something really simple or a misunderstnading of how things work. Any
ideas?

Cheers,
Jamie

___________________________________________________________________________
Jamie O'Shaughnessy                        e-mail: [EMAIL PROTECTED]
Oracle Designer Development                phone : +44 118 92 45052
______________________________________________________  __  __ _  __ .   __
Statements and opinions are my own and not those of... (__)|-</-\(__ |__(-_

Reply via email to