all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: XeCycle <XeCycle@Gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: recommended html modes
Date: Thu, 22 Mar 2012 13:42:24 +0800	[thread overview]
Message-ID: <87k42dnqdb.fsf@Gmail.com> (raw)
In-Reply-To: 87obrpo479.fsf@psinom.home

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

prad <prad@towardsfreedom.com> writes:

> PJ Weisberg <pj@irregularexpressions.net> 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 #2: Type: application/pgp-signature, Size: 489 bytes --]

  reply	other threads:[~2012-03-22  5:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21  7:39 recommended html modes prad
2012-03-21 12:19 ` XeCycle
2012-03-21 20:50   ` prad
2012-03-21 23:13     ` PJ Weisberg
2012-03-22  0:43       ` prad
2012-03-22  5:42         ` XeCycle [this message]
2012-03-22 19:01           ` prad
2012-03-23 15:35             ` XeCycle

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=87k42dnqdb.fsf@Gmail.com \
    --to=xecycle@gmail.com \
    --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.