[Ilugc] Emacs question

  • From: vkanakala@xxxxxxxxxxx (Vamsee Kanakala)
  • Date: Tue Aug 3 11:18:39 2004

Hi Luggers,

    If there are any Emacs fans out here, I have a doubt: How do you 
force a file to be syntax-highlighted? Suppose, I'm setting up my jsp 
files to be loaded in sgml-mode like this:

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

    I'm also using desktop-save to open all my buffers when I start 
emacs. So, when I start emacs, all .java files are syntax highlighted, 
but jsp files are not. But if I open any new jsp files, they're being 
fontified. What do I do to make emacs fontify jsp files like .java files?

TIA,
Vamsee.

Other related posts: