- *** I can't use jsp(mmm) mode currently ***
- I want to use syntax highlighting when edit *.jsp file
- According to the following page, we can use mmm-mode
$ unxip mmm-mode.tar.gz
$ cd mmm-mode
$ ./autogen.sh
$ ./configure
($ ./configure --prefix=~/.emacs.d --datarootdir=~/.emacs.d/share/ --with-lispdir=~/.emacs.d/lisp/mmm-mode)
$ make
$ make install
- some emacs-lisp files are installed at /usr/loca/share/emacs/site-list/
$ aptitude install autotools-dev automake autoconf
;;
;; mmm-mode
;;
(require 'mmm-mode)
;;{{{ JSP Pages
(mmm-add-group 'jsp
`((jsp-comment
:submode text-mode
:face mmm-comment-submode-face
:front "<%--"
:back "--%>"
:insert ((?- jsp-comment nil @ "<%--" @ " " _ " " @ "--%>" @))
)
(jsp-code
:submode java
:match-face (("<%!" . mmm-declaration-submode-face)
("<%=" . mmm-output-submode-face)
("<%" . mmm-code-submode-face))
:front "<%[!=]?"
:back "%>"
:match-name "jsp"
:insert ((?% jsp-code nil @ "<%" @ " " _ " " @ "%>" @)
(?! jsp-declaration nil @ "<%!" @ " " _ " " @ "%>" @)
(?= jsp-expression nil @ "<%=" @ " " _ " " @ "%>" @))
)
(jsp-directive
:submode text-mode
:face mmm-special-submode-face
:front "<%@"
:back "%>"
:insert ((?@ jsp-directive nil @ "<%@" @ " " _ " " @ "%>" @))
)))
;;}}}