all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de
To: Chris Withers <chris@simplistix.co.uk>
Cc: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: pretty-layout in html-mode
Date: Tue, 12 May 2009 13:03:40 +0200	[thread overview]
Message-ID: <20090512110340.GB21268@tomas> (raw)
In-Reply-To: <4A09489D.2030304@simplistix.co.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, May 12, 2009 at 10:59:57AM +0100, Chris Withers wrote:
> ken wrote:
>> Using html-helper-mode, doing C-i properly indents the current line.  So

[...]

> Thanks, but I'm looking for something more like:
> - select region
> - M-x unsuck-html-layout

I don't know at the moment how to pipe a region through an external
process, but that should be feasible. Xmllint does a nice job at what
you are trying:

  xmllint --html --format <your html file here>

Maybe others could chime in as to how one could pass the region (or the
whole buffer) through an external program?

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFKCVeMBcgs9XrR2kYRAv7LAJkBcCi4I9bYb44uDjlE8hEmq6dnUwCdFlYZ
iPfIze+fKOzPo7ddCEOddn4=
=sc2q
-----END PGP SIGNATURE-----




  reply	other threads:[~2009-05-12 11:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12  9:28 pretty-layout in html-mode Chris Withers
2009-05-12  9:58 ` ken
2009-05-12  9:59   ` Chris Withers
2009-05-12 11:03     ` tomas [this message]
2009-05-12 10:57       ` Chris Withers
2009-05-12 11:14         ` tomas
     [not found]       ` <mailman.7058.1242125860.31690.help-gnu-emacs@gnu.org>
2009-05-12 14:58         ` B. T. Raven
     [not found]   ` <mailman.7055.1242122394.31690.help-gnu-emacs@gnu.org>
2009-05-12 10:02     ` Anselm Helbig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090512110340.GB21268@tomas \
    --to=tomas@tuxteam.de \
    --cc=chris@simplistix.co.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.