Guy McArthur writes:
 > Is there a java server page editing mode, perhaps with multiple major
 > modes and JDE?
 > Guy

There is multi-mode, available from:
ftp://archive.cis.ohio-state.edu/pub/emacs-lisp/misc/

Put this into your .emacs
**Note you can use your prefered modes for both html and java
;;multi-mode
       (autoload 'multi-mode
             "multi-mode"
             "Allowing multiple major modes in a buffer."
             t)

       (defun jsp-mode () (interactive)
         (multi-mode 1
             'html-mode
             ;;'("<%" java-mode)
             '("<%" jde-mode)
             '("%>" html-mode)))

       (setq auto-mode-alist
         (cons '("\\.jsp$" . jsp-mode)
         auto-mode-alist))

However, if you use viper mode, you have to  hit ESC to keep the
keybindings when you change modes by moving around in a .jsp file.
This is annoying.  Anyone out there have a fix?
Also, it doesn't colorize right away, you have to mouse-around in
the file to wake up the colors.

While we're on the topic of modes, do any of the lisp wizards on the
list know how to tell efs to use jde mode when visiting *.java instead
of java mode?  Must be a simple mode-hook but I'm not a lisp hacker.


-Ray


-- 
--
You are in a maze of twisting little Java VMs, all different...
[EMAIL PROTECTED]    Tivoli Systems Inc. Austin TX USA
http://www.cross-site.com

Reply via email to