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

let's have emacs load .shtml files correctly



If you use the psgml package you'll have noticed that it doesn't
recognize the .shtml extension as .html; .shtml is used by apache to
recognize server-parsed html code. 

If you add the following lines to /etc/emacs20/site-start.d/50psgml-init.el
it recognizes them:

(or (assoc "\\.shtml$" auto-mode-alist)
    (setq auto-mode-alist (cons '("\\.shtml$" . sgml-html-mode)
				auto-mode-alist)))

put it at the beginning of the file, just after the similar lines with
the .html extension.

This can be used also to have it tecognize other non standard
extensions, like .htm or .HTML or whatever you like.


Pf

-- 

-------------------------------------------------------------------------------
 Pierfrancesco Caci  | mailto:p.caci@flashnet.it - http://gusp.infogroup.it
       ik5pvx        |         http://www.geocities.com/SoHo/Lofts/8999
  Firenze - Italia   | Office for the Complication of Otherwise Simple Affairs 
     Linux penny 2.1.122 #7 Thu Sep 17 13:56:01 CEST 1998 i586 unknown


Reply to: