Re: sgml-omittag, sgml-shorttag, ...

Dave Pawson <[email protected]> Mon, 09 Apr 2007 11:43:18 +0100
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
Steinar Bang wrote:
>>>>>> Jochen Hayek <[email protected]>:
> 
>> But may I try to direct your interest towards my original question:
> 
>> Can I make psgml support that style?
>> I mean so that it properly indents also after the occurrence of such
>> a beast?
> 
> I think that's supposed to happend automatically if psgml is aware
> that your file is an XML file, and not an SGML file.
> 
> I can't offhand remember what triggers XML mode, for a file.


Either the entry in .emacs,
open a new file with xxx.xml and it switches mode


(setq auto-mode-alist
       (append (list
                (cons "\\.xml\\'" 'xml-mode)
	
	       auto-mode-alist
	       )
	      )
       )

or the file contents for an existing file

<!--
      Local Variables:
      mode: xml
      sgml-parent-document: ("dpawson.xml" "website" )
      End:
    -->

I.e. set the parent of this instance in the comment (usually at the end
of the file)

or

M-x xml-mode  to do it by hand.


HTH



regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV