* Need help customizing "TAB" for HTML
@ 2007-01-26 0:21 Angela Bellavance
0 siblings, 0 replies; 5+ messages in thread
From: Angela Bellavance @ 2007-01-26 0:21 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I am using emacs to create HTML documents and am getting frustrated with
the default settings for TAB. When I type TAB to indent a line, it
always seems to add at least two spaces more than the indent on the
previous line. This occurs even when the previous line contains only one
tag that does not have a matching closing tag. I would prefer that TAB
would line up under the start of the previous line unless I have left a
tag open. Ideally this would happen even if I manually adjust where the
previous line is indented to.
Here's an example. Here's what it looks like when I use the default TAB
in HTML-mode on the following text:
<html>
<head>
</head>
<body bgcolor="#ffff99">
<h1>Shift Guide</h1>
<i>Most Recent Update:</i><br>
<i>$Author: bellavan $</i><br>
<i>$Revision: 1.59 $</i><br>
I would like it to look like this:
<html>
<head>
</head>
<body bgcolor="#ffff99">
<h1>CDF SAM Shift Guide</h1>
<i>Most Recent Update:</i><br>
<i>$Author: bellavan $</i><br>
<i>$Revision: 1.59 $</i><br>
Or even better, this:
<html>
<head>
</head>
<body bgcolor="#ffff99">
<h1>CDF SAM Shift Guide</h1>
<i>Most Recent Update:</i><br>
<i>$Author: bellavan $</i><br>
<i>$Revision: 1.59 $</i><br>
where I have manually moved the tag "<head>" back to the beginning of
the line and used TAB to align the rest of the lines.
Does anyone have any suggestions?
Thanks!
Angela
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need help customizing "TAB" for HTML
[not found] <mailman.3610.1169770885.2155.help-gnu-emacs@gnu.org>
@ 2007-01-26 5:14 ` Stefan Monnier
2007-01-26 20:39 ` Angela Bellavance
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2007-01-26 5:14 UTC (permalink / raw)
To: help-gnu-emacs
> I am using emacs to create HTML documents and am getting frustrated with the
> default settings for TAB. When I type TAB to indent a line, it always seems
> to add at least two spaces more than the indent on the previous line. This
> occurs even when the previous line contains only one tag that does not have
> a matching closing tag. I would prefer that TAB would line up under the
> start of the previous line unless I have left a tag open. Ideally this would
> happen even if I manually adjust where the previous line is indented to.
I believe that the HTML mode in Emacs-CVS (expected to become Emacs-22) does
just that.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need help customizing "TAB" for HTML
2007-01-26 5:14 ` Need help customizing "TAB" for HTML Stefan Monnier
@ 2007-01-26 20:39 ` Angela Bellavance
2007-01-27 1:20 ` Stefan Monnier
2007-01-27 1:47 ` David Hansen
0 siblings, 2 replies; 5+ messages in thread
From: Angela Bellavance @ 2007-01-26 20:39 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
That would be wonderful! Is there any way I can add the functionality to
my current version of emacs (since I do not have permission to update
the entire thing)?
Thanks,
Angela
Stefan Monnier wrote:
>> I am using emacs to create HTML documents and am getting frustrated with the
>> default settings for TAB. When I type TAB to indent a line, it always seems
>> to add at least two spaces more than the indent on the previous line. This
>> occurs even when the previous line contains only one tag that does not have
>> a matching closing tag. I would prefer that TAB would line up under the
>> start of the previous line unless I have left a tag open. Ideally this would
>> happen even if I manually adjust where the previous line is indented to.
>
> I believe that the HTML mode in Emacs-CVS (expected to become Emacs-22) does
> just that.
>
>
> Stefan
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need help customizing "TAB" for HTML
2007-01-26 20:39 ` Angela Bellavance
@ 2007-01-27 1:20 ` Stefan Monnier
2007-01-27 1:47 ` David Hansen
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2007-01-27 1:20 UTC (permalink / raw)
To: Angela Bellavance; +Cc: help-gnu-emacs
> That would be wonderful! Is there any way I can add the functionality to my
> current version of emacs (since I do not have permission to update the
> entire thing)?
You can try to use the file in emacs/lisp/textmodes/sgml-mode.el that you
can find by browsing the CVS sources repository on
http://savannah.gnu.org/projects/emacs. I can't guarantee that it works
with Emacs-21.4, but I do remember it working correctly at some point in
the past.
If you encounter a specific problem, post it here and we'll see how to fix
it,
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need help customizing "TAB" for HTML
2007-01-26 20:39 ` Angela Bellavance
2007-01-27 1:20 ` Stefan Monnier
@ 2007-01-27 1:47 ` David Hansen
1 sibling, 0 replies; 5+ messages in thread
From: David Hansen @ 2007-01-27 1:47 UTC (permalink / raw)
To: help-gnu-emacs
On Fri, 26 Jan 2007 14:39:26 -0600 Angela Bellavance wrote:
> That would be wonderful! Is there any way I can add the
> functionality to my current version of emacs (since I do not
> have permission to update the entire thing)?
If you have sufficient disc space available you install emacs
in your $HOME.
David
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-27 1:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.3610.1169770885.2155.help-gnu-emacs@gnu.org>
2007-01-26 5:14 ` Need help customizing "TAB" for HTML Stefan Monnier
2007-01-26 20:39 ` Angela Bellavance
2007-01-27 1:20 ` Stefan Monnier
2007-01-27 1:47 ` David Hansen
2007-01-26 0:21 Angela Bellavance
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.