Apparently, the code you sent needs htmlize, I downloaded htmlize.el
from one of the gnu sites. But still, it doesn't fontify on startup.
Also, when I open a new jsp file, it doesn't fontify anymore (this used
to work when I had those 3 lines I wrote before). Elisp is almost greek
to me, I can't figure out what is going wrong.
Suresh Ramasubramanian wrote:
Vamsee Kanakala wrote:
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:
(append '(("\.jsp$" . sgml-mode))
try this -
"Allowing multiple major modes in a buffer."
(defun jsp-mode () (interactive)
(cons '("\\.jsp$" . jsp-mode)
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.s?html?\\'" . html-helper-mode)
(function (lambda ()
(setq tempo-interactive t)))
(require 'htmlize) ;make HTML out of buffer