From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: recommended html modes Date: Thu, 22 Mar 2012 13:42:24 +0800 Message-ID: <87k42dnqdb.fsf@Gmail.com> References: <87r4wmpfmo.fsf@psinom.home> <873992no39.fsf@Gmail.com> <871uolptjx.fsf@psinom.home> <87obrpo479.fsf@psinom.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1332394971 27045 80.91.229.3 (22 Mar 2012 05:42:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2012 05:42:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 22 06:42:49 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SAanR-0007sC-CM for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Mar 2012 06:42:49 +0100 Original-Received: from localhost ([::1]:53461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAanQ-0007Us-Ku for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Mar 2012 01:42:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAanK-0007UL-G0 for help-gnu-emacs@gnu.org; Thu, 22 Mar 2012 01:42:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAanI-0003k7-Ml for help-gnu-emacs@gnu.org; Thu, 22 Mar 2012 01:42:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAanI-0003k1-FL for help-gnu-emacs@gnu.org; Thu, 22 Mar 2012 01:42:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SAanE-0007k1-Rw for help-gnu-emacs@gnu.org; Thu, 22 Mar 2012 06:42:36 +0100 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Mar 2012 06:42:36 +0100 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Mar 2012 06:42:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:oXSg8foBRU1hmwHoK74b+fD78P8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84086 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable prad writes: > PJ Weisberg 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

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

-> swap point and mark -> insert

. =2D-=20 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJParvBAAoJEI1xjsR3leWRd7AH/0H8H7bj2TpWOhAhU+O4md/M MQwU5ZQWK/RUp10gSjhv6pX5Oqeh3D7zLD2vRQFCmppUorrevMrMaDPqIZbY1XGj /PgtzMlrRz0kQrQPw1s0fc7aIsPSVC/I4INBQG8hw4P/cB0Ut91Vs3GK8S1IGT6g c50w/akbXq7G90Us8/rcHm3tGVuBu+68/EsrkXQuLGYXQih52/+JA1aXPasJPek4 tC25LKR7+OjBso/v+c+PaPeKH6KoGXjIutjvyPpl1mqnMYF9EThhf4MdBKYJ1OS+ 4qlRvIjyQi3frCWi2ArKGe+Gl8ptBnMr52jtbOR45wpaj1cJJV1mjxI1Z/zlAU8= =eQIP -----END PGP SIGNATURE----- --=-=-=--