all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim McNamara <timmcn@bitstream.net>
Subject: Re: Question on using emacs to write html
Date: Thu, 22 Jan 2004 16:29:17 -0600	[thread overview]
Message-ID: <m2brovd3cy.fsf@Stella-Blue.local> (raw)
In-Reply-To: pan.2004.01.22.21.14.54.957016@cunningham.net

Jeff <jeffrey@cunningham.net> 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 <center></center>,
> <table></table>, <td></td>, <a href=""></a>, 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).

  parent reply	other threads:[~2004-01-22 22:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 21:14 Question on using emacs to write html Jeff
2004-01-22 21:57 ` Kevin Rodgers
2004-01-22 22:29 ` Tim McNamara [this message]
2004-01-23  5:58   ` Jeff
2004-01-23  9:18   ` Gian Uberto Lauri
2004-01-23  6:46 ` Jeff
2004-01-23  7:08   ` Jeff
2004-01-23 11:44     ` Oliver Scholz

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=m2brovd3cy.fsf@Stella-Blue.local \
    --to=timmcn@bitstream.net \
    /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.