* XHTML indent
@ 2006-08-10 7:52 ray
2006-08-10 16:19 ` Brad Camroux
0 siblings, 1 reply; 5+ messages in thread
From: ray @ 2006-08-10 7:52 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]
I want to use XHTML mode to edit xhtml file with emacs22. But I feel that
this mode's indentation is too wide. How can I customize it? I read the
Emacs Manual but found no answer. Can somebody help me? Thanks.
[-- Attachment #1.2: Type: text/html, Size: 214 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
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: XHTML indent
2006-08-10 7:52 XHTML indent ray
@ 2006-08-10 16:19 ` Brad Camroux
2006-08-10 16:39 ` David Hansen
0 siblings, 1 reply; 5+ messages in thread
From: Brad Camroux @ 2006-08-10 16:19 UTC (permalink / raw)
On Thu, Aug 10, 2006 at 03:52:36PM +0800, ray wrote:
> I want to use XHTML mode to edit xhtml file with emacs22. But I feel
> that this mode's indentation is too wide. How can I customize it? I
> read the Emacs Manual but found no answer. Can somebody help me?
> Thanks.
I'm in the same boat. I want to customize the (X)HTML mode indentation,
but haven't been able to find any docs explaining how to do it. Please
help us :)
Cheers!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHTML indent
2006-08-10 16:19 ` Brad Camroux
@ 2006-08-10 16:39 ` David Hansen
2006-08-11 17:14 ` Brad Camroux
[not found] ` <mailman.5088.1155316456.9609.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: David Hansen @ 2006-08-10 16:39 UTC (permalink / raw)
On Thu, 10 Aug 2006 10:19:13 -0600 Brad Camroux wrote:
> On Thu, Aug 10, 2006 at 03:52:36PM +0800, ray wrote:
>> I want to use XHTML mode to edit xhtml file with emacs22. But I feel
>> that this mode's indentation is too wide. How can I customize it? I
>> read the Emacs Manual but found no answer. Can somebody help me?
>> Thanks.
>
> I'm in the same boat. I want to customize the (X)HTML mode indentation,
> but haven't been able to find any docs explaining how to do it. Please
> help us :)
As far as i can see the indentation step is set via
`sgml-basic-offset'. But it defaults to "2" and i don't
think anyone would think that this is "to wide".
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHTML indent
2006-08-10 16:39 ` David Hansen
@ 2006-08-11 17:14 ` Brad Camroux
[not found] ` <mailman.5088.1155316456.9609.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Brad Camroux @ 2006-08-11 17:14 UTC (permalink / raw)
On Thu, Aug 10, 2006 at 06:39:39PM +0200, David Hansen wrote:
> As far as i can see the indentation step is set via
> `sgml-basic-offset'. But it defaults to "2" and i don't
> think anyone would think that this is "to wide".
Okay... I dunno what my offset is set to, but it looks more like
10 or 15. Certainly not 2. I would be happy with 2 or 4. Do I
just set this in my .emacs file? Will it not be overridden when
I start up SGML/HTML mode?
Thanks,
Brad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: XHTML indent
[not found] ` <mailman.5088.1155316456.9609.help-gnu-emacs@gnu.org>
@ 2006-08-12 0:12 ` Giorgos Keramidas
0 siblings, 0 replies; 5+ messages in thread
From: Giorgos Keramidas @ 2006-08-12 0:12 UTC (permalink / raw)
On Fri, 11 Aug 2006 11:14:11 -0600, Brad Camroux <bgcamroux@shaw.ca> wrote:
> On Thu, Aug 10, 2006 at 06:39:39PM +0200, David Hansen wrote:
>> As far as i can see the indentation step is set via
>> `sgml-basic-offset'. But it defaults to "2" and i
>> don't think anyone would think that this is "to wide".
>
> Okay... I dunno what my offset is set to, but it looks more
> like 10 or 15. Certainly not 2. I would be happy with 2 or 4.
> Do I just set this in my .emacs file? Will it not be
> overridden when I start up SGML/HTML mode?
The default behavior sould be fine, if all you want is 2-column
indentation in XHTML buffers.
Can you open a buffer in sgml-mode and then check the value of
the following variables?
indent-tabs-mode
tab-always-indent
Then use `C-h k TAB' and see what TAB is bound to do.
Keep the results from these steps somewhere, and then repeat the
same steps with an Emacs session started with:
emacs -Q
Keep these results somewhere too and post both sets back to the
newsgroup.
Regards,
Giorgos
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-08-12 0:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 7:52 XHTML indent ray
2006-08-10 16:19 ` Brad Camroux
2006-08-10 16:39 ` David Hansen
2006-08-11 17:14 ` Brad Camroux
[not found] ` <mailman.5088.1155316456.9609.help-gnu-emacs@gnu.org>
2006-08-12 0:12 ` Giorgos Keramidas
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).