* Question on using emacs to write html
@ 2004-01-22 21:14 Jeff
2004-01-22 21:57 ` Kevin Rodgers
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jeff @ 2004-01-22 21:14 UTC (permalink / raw)
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'?
Just wondering.
-Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question on using emacs to write html
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
2004-01-23 6:46 ` Jeff
2 siblings, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2004-01-22 21:57 UTC (permalink / raw)
Jeff wrote:
> 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'?
html-helper-mode.el has that and a lot more:
http://www.nongnu.org/baol-hth/index.html
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question on using emacs to write html
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
2004-01-23 5:58 ` Jeff
2004-01-23 9:18 ` Gian Uberto Lauri
2004-01-23 6:46 ` Jeff
2 siblings, 2 replies; 8+ messages in thread
From: Tim McNamara @ 2004-01-22 22:29 UTC (permalink / raw)
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).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question on using emacs to write html
2004-01-22 22:29 ` Tim McNamara
@ 2004-01-23 5:58 ` Jeff
2004-01-23 9:18 ` Gian Uberto Lauri
1 sibling, 0 replies; 8+ messages in thread
From: Jeff @ 2004-01-23 5:58 UTC (permalink / raw)
On Thu, 22 Jan 2004 16:29:17 -0600, Tim McNamara wrote:
> 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).
Hey, thanks you guys. I'm grabbing it now. Glad I asked.
-Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question on using emacs to write html
2004-01-22 22:29 ` Tim McNamara
2004-01-23 5:58 ` Jeff
@ 2004-01-23 9:18 ` Gian Uberto Lauri
1 sibling, 0 replies; 8+ messages in thread
From: Gian Uberto Lauri @ 2004-01-23 9:18 UTC (permalink / raw)
Cc: help-gnu-emacs
>>>>> "TM" == Tim McNamara <timmcn@bitstream.net> writes:
TM> 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'?
TM> Try "html-helper-mode" which works like a charm. It has a menu
TM> (with associated key bindings) for most tags and such. You can
TM> even select a string and html-helper-mode will place the opening
TM> and closing tags in their proper places. Trick!
When it works well it's all Nelson Minar's credit!
TM> The only trouble I've had- and it's *really* minor- is that it
TM> spends a bit of time fontifying files, not much of a problem
TM> except on big files. html-helper-mode colors tags and text very
TM> nicely and it's easy to see the structure of the document. I
TM> haven't tried it with jit-lock or lazy-lock, which might speed up
TM> that fontifying.
Hmmm... Calling it *really* minor is a BIG kindness. I still consider
html-helper-mode a kluge (RMS kindly said that some things could be
done in an easier way...)
Anyway, the latest released version is available (should be) at
http://www.nongnu.org/baol-hth/index.html while the project url is at
https://savannah.nongnu.org/projects/baol-hth/
(baol is the logname I use when saint is not available)
WARNING!
Under Emacs 21 html-helper-mode is known to hang Emacs with certain
(JSP/ASP/PHP) files.
Consider server-side code fontification as "broken" under Emacs 21 and
this trouble could happen with multiline blocks. I fear that the code
is too slow to finish the job before the jit starts it again.
Disabling JIT could be an UGLY workaround.
Work is in progress to fix it, actually the CVS version on savannah
works except some features (like tag attributes - namely all the
font-lock-keywords stuff) are lost and doesn't highlight the last tag.
My apologies.
/\ ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
//--\ | | \| | Integralista GNUslamico e fancazzista
\/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question on using emacs to write html
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
@ 2004-01-23 6:46 ` Jeff
2004-01-23 7:08 ` Jeff
2 siblings, 1 reply; 8+ messages in thread
From: Jeff @ 2004-01-23 6:46 UTC (permalink / raw)
On Thu, 22 Jan 2004 21:14:55 +0000, Jeff wrote:
I've been playing with html-helper-mode and its pretty slick. I've only
run into one problem so far - I'm running Enlightenment which has the
M-Tab key bound to paging through desktop apps. This is a problem, because
completion is going to be very important here I can see already. I don't
know at the moment if there's a way to alter Enlightenment's bindings. I
never use it that way anyway. Hmmm.
-Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-01-23 11:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).