* Change tab-with in nxhtml-mode
@ 2008-08-18 8:42 Niels Geuts
2008-08-18 9:11 ` Lennart Borgman
2008-08-18 9:37 ` Nikolaj Schumacher
0 siblings, 2 replies; 7+ messages in thread
From: Niels Geuts @ 2008-08-18 8:42 UTC (permalink / raw)
To: Help-gnu-emacs
Hello,
When writing in nxhtml-mode, when I press <tab> the cursor moves 2 spaces to
the right. I want this to be 4 spaces. How can I change this? The standard
Indent variable from the Indent customization group is already set to 4. I
can't find any working solutions on this forum, the EmacsWiki or mumamo.el.
thanks,
Niels
--
View this message in context: http://www.nabble.com/Change-tab-with-in-nxhtml-mode-tp19027749p19027749.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Change tab-with in nxhtml-mode
2008-08-18 8:42 Change tab-with in nxhtml-mode Niels Geuts
@ 2008-08-18 9:11 ` Lennart Borgman
2008-08-18 9:46 ` Niels Geuts
2008-08-18 9:37 ` Nikolaj Schumacher
1 sibling, 1 reply; 7+ messages in thread
From: Lennart Borgman @ 2008-08-18 9:11 UTC (permalink / raw)
To: Niels Geuts; +Cc: Help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
On Mon, Aug 18, 2008 at 10:42 AM, Niels Geuts <nielsgeurtslists@gmail.com>wrote:
>
> Hello,
>
> When writing in nxhtml-mode, when I press <tab> the cursor moves 2 spaces
> to
> the right. I want this to be 4 spaces. How can I change this? The standard
> Indent variable from the Indent customization group is already set to 4. I
> can't find any working solutions on this forum, the EmacsWiki or mumamo.el.
>
Hi Niels,
You have to be a little bit more specific. Are you using nxhtml-mode alone
or are you using it as part of nxhtml-mumamo multi major mode?
[-- Attachment #2: Type: text/html, Size: 885 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Change tab-with in nxhtml-mode
2008-08-18 8:42 Change tab-with in nxhtml-mode Niels Geuts
2008-08-18 9:11 ` Lennart Borgman
@ 2008-08-18 9:37 ` Nikolaj Schumacher
1 sibling, 0 replies; 7+ messages in thread
From: Nikolaj Schumacher @ 2008-08-18 9:37 UTC (permalink / raw)
To: Niels Geuts; +Cc: Help-gnu-emacs
Niels Geuts <nielsgeurtslists@gmail.com> wrote:
> When writing in nxhtml-mode, when I press <tab> the cursor moves 2 spaces to
> the right. I want this to be 4 spaces. How can I change this?
Please note that this is not called "tab-width". `tab-width' is the
amount of spaces a tab character (\t) is displayed with.
> The standard Indent variable from the Indent customization group is
> already set to 4.
Note that `standard-indent' is the value used for `increase-left-margin'
et al. Other modes usually don't inherit its value. So you need to
look inside the package (and its dependencies) for the appropriate variables.
I don't know about nxhtml-mode, but nxml-mode uses `nxml-child-indent'.
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Change tab-with in nxhtml-mode
2008-08-18 9:11 ` Lennart Borgman
@ 2008-08-18 9:46 ` Niels Geuts
2008-08-18 14:53 ` Lennart Borgman (gmail)
2008-08-18 15:59 ` Nikolaj Schumacher
0 siblings, 2 replies; 7+ messages in thread
From: Niels Geuts @ 2008-08-18 9:46 UTC (permalink / raw)
To: Help-gnu-emacs
>> When writing in nxhtml-mode, when I press <tab> the cursor moves 2 spaces
>> to> the right. I want this to be 4 spaces. How can I change this?
> Are you using nxhtml-mode alone or are you using it as part of
> nxhtml-mumamo
> multi major mode?
I write PHP, XHTML and CSS, but I did not set mumamo explicitly. It just
works :) I would like the indentation for the PHP chunks to be 4 spaces. But
I would also like to know how to create tabs in CSS files. If I press <tab>
when writing CSS, nothing happens.
Thank you,
Niels
--
View this message in context: http://www.nabble.com/Change-tab-with-in-nxhtml-mode-tp19027749p19028464.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Change tab-with in nxhtml-mode
2008-08-18 9:46 ` Niels Geuts
@ 2008-08-18 14:53 ` Lennart Borgman (gmail)
2008-08-18 15:59 ` Nikolaj Schumacher
1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-08-18 14:53 UTC (permalink / raw)
To: Niels Geuts; +Cc: Help-gnu-emacs
Niels Geuts wrote:
>>> When writing in nxhtml-mode, when I press <tab> the cursor moves 2 spaces
>>> to> the right. I want this to be 4 spaces. How can I change this?
>
>> Are you using nxhtml-mode alone or are you using it as part of
>> nxhtml-mumamo
>> multi major mode?
>
> I write PHP, XHTML and CSS, but I did not set mumamo explicitly. It just
> works :) I would like the indentation for the PHP chunks to be 4 spaces.
I have never tried to set that. Looking at the php-mode.el you can see
that it uses c-indent-line for indentation of php code.
I think someone else have to answer how to customize that.
> But
> I would also like to know how to create tabs in CSS files. If I press <tab>
> when writing CSS, nothing happens.
If you press <tab> you tell Emacs to indent the line. You can see that
by doing
C-h k tab
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Change tab-with in nxhtml-mode
2008-08-18 9:46 ` Niels Geuts
2008-08-18 14:53 ` Lennart Borgman (gmail)
@ 2008-08-18 15:59 ` Nikolaj Schumacher
2008-08-20 14:14 ` Niels Geuts
1 sibling, 1 reply; 7+ messages in thread
From: Nikolaj Schumacher @ 2008-08-18 15:59 UTC (permalink / raw)
To: Niels Geuts; +Cc: Help-gnu-emacs
Niels Geuts <nielsgeurtslists@gmail.com> wrote:
> I would like the indentation for the PHP chunks to be 4 spaces.
Try setting `c-basic-offset'.
> But I would also like to know how to create tabs in CSS files. If I
> press <tab> when writing CSS, nothing happens.
Check the value of `css-indent-offset'.
If you want to create a literal tab character, you can always do C-q C-i.
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Change tab-with in nxhtml-mode
2008-08-18 15:59 ` Nikolaj Schumacher
@ 2008-08-20 14:14 ` Niels Geuts
0 siblings, 0 replies; 7+ messages in thread
From: Niels Geuts @ 2008-08-20 14:14 UTC (permalink / raw)
To: Help-gnu-emacs
>> I would like the indentation for the PHP chunks to be 4 spaces.
>Try setting `c-basic-offset'.
Yes, this works.
>If you want to create a literal tab character, you can always do C-q C-i.
I just read that C-q <tab> also does this.
For other people who might encounter the same difficulties: as an Emacs
beginner the following tutorial on indentation was very helpful to me:
http://www.xemacs.org/Links/tutorials_1.html
(I just found it with the help of the previous posts. Thanks everyone!)
Niels
--
View this message in context: http://www.nabble.com/Change-tab-with-in-nxhtml-mode-tp19027749p19069916.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-08-20 14:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 8:42 Change tab-with in nxhtml-mode Niels Geuts
2008-08-18 9:11 ` Lennart Borgman
2008-08-18 9:46 ` Niels Geuts
2008-08-18 14:53 ` Lennart Borgman (gmail)
2008-08-18 15:59 ` Nikolaj Schumacher
2008-08-20 14:14 ` Niels Geuts
2008-08-18 9:37 ` Nikolaj Schumacher
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.