From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim McNamara Newsgroups: gmane.emacs.help Subject: Re: Question on using emacs to write html Date: Thu, 22 Jan 2004 16:29:17 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074810857 1669 80.91.224.253 (22 Jan 2004 22:34:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2004 22:34:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 23:34:12 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AjnOu-0002iU-00 for ; Thu, 22 Jan 2004 23:34:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjnNo-0002mr-KK for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jan 2004 17:33:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!gemini.bitstream.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:FftYbcbrkxAzmGyjlf2MCWg4LBc= Original-Lines: 26 Original-NNTP-Posting-Host: b9eea941.news.bitstream.net Original-X-Trace: 1074810557 gemini.bitstream.net 434 216.243.177.155 Original-X-Complaints-To: abuse@bitstream.net Original-Xref: shelby.stanford.edu gnu.emacs.help:120346 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:16290 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16290 Jeff writes: > I've been programming so long using emacs that other key bindings > drive me crazy. Lately I've been writing html using emacs because > bluefish uses the Microsoft bindings. Is there a way to bind keys to > the insertion of common toggle pairs, like
, >
, , , and so on? Is there a > way to have this work only in an 'html mode'? Try "html-helper-mode" which works like a charm. It has a menu (with associated key bindings) for most tags and such. You can even select a string and html-helper-mode will place the opening and closing tags in their proper places. Trick! The only trouble I've had- and it's *really* minor- is that it spends a bit of time fontifying files, not much of a problem except on big files. html-helper-mode colors tags and text very nicely and it's easy to see the structure of the document. I haven't tried it with jit-lock or lazy-lock, which might speed up that fontifying. There are a number of HTML/XML/SGML type modes available. XML-mode works OK, I prefer html-helper-mode (although XML-mode has a menu item for previewing the buffer in a browser, which is really handy for checking quickly and easily on the effects of any changes to the code; I should suggest this for html-helper-mode, unless the maintainer sees this before I get around to it).