Please look at the (setq jde-mode-line-format ...) in the hook below. AFAIK this 
should customize the modeline
in JDE-buffers like i want. But after opening a java-file the modeline has always the 
default-value defined in
jde-which-method.el. Why????????????????????????

I load my file user-jde-mode.el (look below) from my site-start.el, that�s all.

Klaus

I have the following to customize 2.2.3:

_______________________________________________________________
;;; user-jde-mode.el --- user-defined settings, function... for jde-mode

;; Copyright (C) 2000 by Free Software Foundation, Inc.

;; Author:  <berndl@HICKERSTALL>

;;; Code:

(defun my-jde-complete-at-point (arg)
  "Completes the method or field name at point. See `jde-complete-at-point'
for further explanations. With any prefix argument ARG a popup menu is
displayed listing the potential completions for the name at point. For
further explanations see `jde-complete-at-point-menu'."
  (interactive "P")
  (if arg
      (jde-complete-at-point-menu)
    (jde-complete-at-point)))
  

(require 'user-cc-mode)
(add-to-list 'load-path "d:/Programme/jpda1.0/bin")

;; load the JDE, THE Java Development Environment
(require 'jde)

;; all settings begin here
(add-hook 'jde-mode-hook
          (lambda ()
            (setq jde-mode-line-format
                  (list
                   ""
                   " "                  ;-
                   'mode-line-mule-info
                   'mode-line-modified
                   'my-modeline-bufname
                   " "
                   " %[("
                   'mode-name
                   'mode-line-process
                   'minor-mode-alist
                   "%n"
                   ")%]  "
                   '(line-number-mode "%l/")
                   '(column-number-mode "%c ")
                   '(jde-which-method-mode
                     ("" jde-which-method-format "  "))
                   "  "
                   'global-mode-string
                   " % "))
            (local-set-key (if (eq system-type 'windows-nt)
                               (kbd "C-S-<tab>")
                             (kbd "C-S-<kp-tab>"))
                             'my-jde-complete-at-point)))

(provide 'user-jde-mode)

;; user-jde-mode.el ends here.
_______________________________________________________________


--
Klaus Berndl                    mailto: [EMAIL PROTECTED]
sd&m AG                 http://www.sdm.de
software design & management    
Thomas-Dehler-Str. 27, 81737 M�nchen, Germany
Tel +49 89 63812-392, Fax -220

Reply via email to