help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] set syntax hi-lighting


From: Jonathan Epstein
Subject: Re: [h-e-w] set syntax hi-lighting
Date: Thu, 03 Jan 2002 21:54:31 -0500

Two problems:

1. The add-to-list can't go in custom-set-variables like that. Remove that line and add the line:

(add-to-list 'auto-mode-alist '("\\.jsp\\'" . text-mode))

outside that statement.


2. You can probably do a lot better than text-mode for editing JSP files. A groups.google.com search on "JSP Emacs" will point you to a lot of solutions, including jsp-html-helper-mode.el
  https://sourceforge.net/snippet/detail.php?type=snippet&id=100223
and more complex solutions involving mmm-mode and multi-mode.

HTH,

- Jonathan


At 09:12 PM 1/3/02, wendy_yu wrote:
I tried to modify my .emacs to make Emacs use TEXT major mode
for all .jsp files (see below), but no luck.

---------------- .emacs file --------------------------------
(custom-set-variables
 '(font-lock-support-mode nil)
 '(global-font-lock-mode t nil (font-lock))
 '(font-lock-global-modes t)
 '(add-to-list 'auto-mode-alist '("\\.jsp\\'" . text-mode))
)
(custom-set-faces)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]