unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* 4 spaces by hitting tab for PHP-mode
@ 2013-08-27  7:15 ishi soichi
  2013-08-27  8:01 ` Aurélien Aptel
  0 siblings, 1 reply; 3+ messages in thread
From: ishi soichi @ 2013-08-27  7:15 UTC (permalink / raw)
  To: help-gnu-emacs

Could anyone help me set hitting TAB gives *4 spaces* as an indent.
The following does not do it.
TAB gives two tabs(?) which is not what I want.

(add-hook 'php-mode-hook
  '(lambda()
     (setq tab-width 4)
     (setq indent-tabs-mode t)
     (setq c-basic-offset 4)
   ))


soichi


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 4 spaces by hitting tab for PHP-mode
  2013-08-27  7:15 4 spaces by hitting tab for PHP-mode ishi soichi
@ 2013-08-27  8:01 ` Aurélien Aptel
  2013-08-28  1:55   ` ishi soichi
  0 siblings, 1 reply; 3+ messages in thread
From: Aurélien Aptel @ 2013-08-27  8:01 UTC (permalink / raw)
  To: ishi soichi; +Cc: help-gnu-emacs@gnu.org

indent-tabs-more should be nil, not t.

On Tue, Aug 27, 2013 at 9:15 AM, ishi soichi <soichi777@gmail.com> wrote:
> Could anyone help me set hitting TAB gives *4 spaces* as an indent.
> The following does not do it.
> TAB gives two tabs(?) which is not what I want.
>
> (add-hook 'php-mode-hook
>   '(lambda()
>      (setq tab-width 4)
>      (setq indent-tabs-mode t)
>      (setq c-basic-offset 4)
>    ))
>
>
> soichi



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 4 spaces by hitting tab for PHP-mode
  2013-08-27  8:01 ` Aurélien Aptel
@ 2013-08-28  1:55   ` ishi soichi
  0 siblings, 0 replies; 3+ messages in thread
From: ishi soichi @ 2013-08-28  1:55 UTC (permalink / raw)
  To: Aurélien Aptel; +Cc: help-gnu-emacs@gnu.org

thanks. it helped a lot!


2013/8/27 Aurélien Aptel <aurelien.aptel+emacs@gmail.com>

> indent-tabs-more should be nil, not t.
>
> On Tue, Aug 27, 2013 at 9:15 AM, ishi soichi <soichi777@gmail.com> wrote:
> > Could anyone help me set hitting TAB gives *4 spaces* as an indent.
> > The following does not do it.
> > TAB gives two tabs(?) which is not what I want.
> >
> > (add-hook 'php-mode-hook
> >   '(lambda()
> >      (setq tab-width 4)
> >      (setq indent-tabs-mode t)
> >      (setq c-basic-offset 4)
> >    ))
> >
> >
> > soichi
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-28  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27  7:15 4 spaces by hitting tab for PHP-mode ishi soichi
2013-08-27  8:01 ` Aurélien Aptel
2013-08-28  1:55   ` ishi soichi

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).