Paul Kinnucan wrote:

> At 09:56 AM 1/26/00 -0600, you wrote:
> >nt4.0
> >jde2.16beta16
> >
> >If I byte compile the jde lisp code will it speed up emacs startup?
> >Currently, most of the time spent bringing up emacs is spent loading
> >the jde.
> >
>
> In your .emacs file, replace
>
> (require 'jde)
>
> with the following:
>
> (setq auto-mode-alist
>   (append
>    '(("\\.java\\'" . jde-mode))
>         auto-mode-alist))
>
> (autoload 'jde-mode "jde" "JDE mode" t)
>

Thats useful! To further speed-up my Emacs load time I added the following to my 
.emacs file:

;; Loads jde and related libs
(defun load-jde ()
  (load "jde")
  (load "jdok")
  (load "jpack")            ;; Auto-generates package statements
  (load "jsee")             ;; JavaDoc browser
  (load "jfolding")         ;; Folds functions and comments
  (load "jde-auto-abbrev")  ;; Turns off abbrev mode in comments and strings
  (jde-mode)
)

;; Run load-jde when a .java file is opened
(setq auto-mode-alist (append '(("\\.java\\'" . load-jde)) auto-mode-alist))

--
| Jesper Nordenberg, M.Sc. in C.S.E.    NNL Technology AB
| E-mail: [EMAIL PROTECTED]                 Teknikringen 1A
| Phone:  +46 13 211400                 S-583 30 Link�ping
| Internet: www.nnl.se, wap.nnl.se      SWEDEN


Reply via email to