From xemacs-m  Tue Apr  8 06:40:17 1997
Received: from mgate.uni-hannover.de (mgate.uni-hannover.de [130.75.2.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id GAA26003
	for <xemacs-beta@xemacs.org>; Tue, 8 Apr 1997 06:40:16 -0500 (CDT)
Received: from helios (actually helios.tnt.uni-hannover.de) by mgate 
          with SMTP (PP); Tue, 8 Apr 1997 13:38:51 +0200
Received: from daedalus.tnt.uni-hannover.de by helios (SMI-8.6/SMI-SVR4) 
          id NAA23640; Tue, 8 Apr 1997 13:38:25 +0200
Received: by daedalus.tnt.uni-hannover.de (SMI-8.6/SMI-SVR4) id NAA12689;
          Tue, 8 Apr 1997 13:38:25 +0200
Date: Tue, 8 Apr 1997 13:38:25 +0200
Message-Id: <199704081138.NAA12689@daedalus.tnt.uni-hannover.de>
From: Heiko Muenkel <muenkel@tnt.uni-hannover.de>
To: holder@rsn.hp.com
Cc: xemacs-beta@xemacs.org
Subject: Re: psgml-mode as default html mode?
In-Reply-To: <fawn2rhmdso.fsf@mordor.rsn.hp.com>
References: <fawn2rhmdso.fsf@mordor.rsn.hp.com>
X-Mailer: VM 6.22 under 19.15 XEmacs Lucid (beta104)
X-Face: n}R'l6CHRf>pi&bj7[x0CW3:kmXm@1)7m+l*9[fp;-Ow4Xe~=5E;skf?2> 
        y]f{HzB|Q(\V9+y$PP~.4G[2n4W7{6Ilm[AMY9B:0kj.K_$-d%p4YIF*bX;=ADp6{ 
        HS@NEv9c.VII+9PgXHASx}K(jy^t=q%qzZ72q1e4E;O!$A$`&wgtLk"1%p.nC_G!] 
        4d1!+J4Q#YD_iXeEy`1x)d\r$1Qn\'23n|[8Y_xzuXJJ7W(EGqnzB]`]aq??;+z=) 
        DW~\'Vq&F'g%QU[Mv2:}nS>SdZFTEC2GsgB=Q,:~H<R5S[:ZN%B:s0;|v1x"Jb
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII

>>>>> "Shane" == Shane Holder <holder@rsn.hp.com> writes:

    Shane> I may be starting a long discussion here, but this group
    Shane> seems used to that.  :)

    Shane>     I'm not sure psgml-mode should be the default mode for
    Shane> editing html files.

    Shane>     Psgml has lots of really neat features, but it's
    Shane> *really* complex.  I've spent the last 30 minutes trying to
    Shane> figure out how to insert a table, without success.  The
    Shane> standard C-h b and search for table doesn't come up with
    Shane> any answers.  Nothing in the menus says anything about how
    Shane> to insert a table.  I'm sure it's possible to change some
    Shane> DTD thingy and get tables, but I don't know squat about
    Shane> DTD, I'm going to learn, because it seems to be pretty
    Shane> cool, and I like the way psgml-mode works, but for a novice
    Shane> it's a real headache.  

That's the main reason, why I've written the hm--html-mode.

    Shane> The documentation isn't really
    Shane> helpful either.  The docs seem to make the assumption that
    Shane> the user is already very familiar with PSGML and DTD stuff
    Shane> and refers the user to another document for a primer.  Not
    Shane> what I wanted to see when all I wanted to do was insert a
    Shane> table. :)

    Shane>     I think hm--html-mode would be a better choice for a
    Shane> default html mode.

It may be a good idea to put something in the option menu, which
changes the default. 

The following should work to get the hm--html-mode by default:
(setq auto-mode-alist (cons '("\\.html$" . hm--html-mode) 
				auto-mode-alist))
(setq auto-mode-alist (cons '("\\.shtml$" . hm--html-mode) 
				auto-mode-alist))

Note: It's also possible to use the hm--html-minor-mode together with
the psgml mode. The minor mode extents the psgml menus, so that you
you'll be able to select either a menu item of the psgml menu or of
the hm--html-minor-mode. If you'll do that, then you should use the
following instead of the above lines:

(add-hook 'html-mode-hook 'hm--html-minor-mode)


I hope this helps,

Heiko


PS: I vote also for changing the default mode - but I'm the author :-)

