From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: editing html - auto insert end tags Date: Thu, 18 Aug 2005 01:03:29 +0200 Message-ID: <4303C241.2000406@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1124321990 30994 80.91.229.2 (17 Aug 2005 23:39:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2005 23:39:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 18 01:39:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5XUL-0006OI-GF for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Aug 2005 01:38:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5XXp-0005w3-HI for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Aug 2005 19:42:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5XVS-0005Bf-Qy for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 19:39:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5XVF-00056p-0N for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 19:39:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5XPO-0002lp-Pj for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 19:33:22 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5XCR-0003aj-Mt for help-gnu-emacs@gnu.org; Wed, 17 Aug 2005 19:20:00 -0400 Original-Received: from [192.168.123.121] (83.249.200.233) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 42BFBBD200821772; Thu, 18 Aug 2005 01:03:32 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: chris In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28805 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28805 chris wrote: > Hi, > > Does anyone know of a html mode that will auto insert the end tags as > I type. If is typed, it'll add straight away? > > It's a simple thing I can live without, but it would be nice. You can use nxml-mode to edit xhtml files, see EmacsWiki. nxml-mode does not do exactly what you are asking for. Instead it keeps track of what is missing so just position the point where the end tag should be and the type C-c C-f. And since it is an error that the end tag is missing nxml-mode can take you to the right position too. It will also show be a red underline where that is. Very handy.