[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recommended html modes

From: XeCycle
Subject: Re: recommended html modes
Date: Thu, 22 Mar 2012 13:42:24 +0800
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)

prad <address@hidden> writes:

> PJ Weisberg <address@hidden> writes:
>> (push '("\\.s?html?$" . nxml-mode) auto-mode-alist)
> hey thx pj!
> never knew about auto-mode-alist!
> (i thought you'd have to use hooks or something, but i never explored it.)

A more robust way is to use add-to-list 'auto-mode-alist.

> a quick question about nxml mode.
> if i want to surround a paragraph with <p></p> is there a mechanism for
> selecting the paragraph and enclosing it (eg M-ret does this in
> html-helper-mode). i haven't been able to find something like this in
> any of the docs on nxml i've come across so far.

Don't think it's provided, but it should be easy to write one.
It's just about marking the paragraph, insert <p> -> swap point
and mark -> insert </p>.

Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

Attachment: pgppI_sCbE48P.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]