From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: pretty-layout in html-mode Date: Tue, 12 May 2009 12:02:54 +0200 Organization: Freie Universitaet Berlin Message-ID: <878wl2iqpd.wl%anselm.helbig+news2009@googlemail.com> References: <4A09414F.2010206@simplistix.co.uk> <4A094842.8090701@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1242124906 18360 80.91.229.12 (12 May 2009 10:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 10:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 12 12:41:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3pQX-0003mo-7P for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2009 12:41:37 +0200 Original-Received: from localhost ([127.0.0.1]:45732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3pQW-0006BD-9L for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2009 06:41:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-X-Trace: news.uni-berlin.de VAOCCj6p8hgCMj2b4LaS5Q8lBQPr9hagTmDN+dDNRLgAGxzT6+r0M2/HE2 Cancel-Lock: sha1:hG/GISPb2FAuM5515neFIYbliPA= In-Reply-To: Mail-Followup-To: anselm.helbig+news2009@googlemail.com User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) Original-Xref: news.stanford.edu gnu.emacs.help:169108 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:64372 Archived-At: At Tue, 12 May 2009 10:59:57 +0100, Chris Withers wrote: > > ken wrote: > > Using html-helper-mode, doing C-i properly indents the current line. So > > in such files I start with the point on the first line, do C-i, then do > > the same on the second line, and so on. This of course doesn't work if > > all the html code is on one line. The tags and text you want to indent > > properly must lie at the beginning of a new line (optionally with some > > white space preceding it); that is, C-i won't insert newlines at proper > > locations. ("Proper location" is not an objective determination > > anyway.) But html-helper-mode does understand opening and closing tags > > and (normally) indents these at the same level. > > Thanks, but I'm looking for something more like: > - select region > - M-x unsuck-html-layout You're looking for `indent-region' which is bound to C-M-\. I'm using it with html-mode, works great. Regards, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com