unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Erik Simon <erik.simon@cern.ch>
Subject: Re: Unable to Set Tab Width
Date: Fri, 21 Mar 2003 09:20:02 +0100	[thread overview]
Message-ID: <pqk8yv9ku6l.fsf@lxplus013.cern.ch> (raw)
In-Reply-To: b5wea.52488$_F2.4570178@news1.east.cox.net

Hi,

On 21 Mar 2003, matrix2468REMOVETHISTOREPLY@cox.net wrote:
>(setq default-tab-width 2)
>
>I thought the above command would set the tab width to 2,
>but it is stuck at 4!

See the help for default-tab-width, it's for buffers that don't
override it.

>It's driving me nuts while editing perl or java.

Tabs are controlled in java-mode by c-basic-offset (as in C)
Have a look at c-indent-command (C-h f c-indent-command).

In perl-mode, it's controlled by perl-indent-level if I remember
well. I actually never changed those myself, maybe it messes up with
the indent style, dunno...

>I thought emacs was configurable... no?

It is :-)

Good luck
-- 
Erik Simon

  reply	other threads:[~2003-03-21  8:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-21  3:57 Unable to Set Tab Width Chris
2003-03-21  8:20 ` Erik Simon [this message]
2003-03-21 13:39 ` Bijan Soleymani
2003-03-21 20:33 ` Pascal Bourguignon
2003-03-22  4:27 ` Chris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pqk8yv9ku6l.fsf@lxplus013.cern.ch \
    --to=erik.simon@cern.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).