unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: indenting
Date: Tue, 26 Oct 2004 17:14:16 GMT	[thread overview]
Message-ID: <jwvu0shjtmk.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: cllodo$9hi$1@home.itg.ti.com

> I do not want tab characters.

Your (setq-default indent-tabs-mode nil) does that.

> I want to be able to hit the tab key after I type int and i1. but the int
> indents and follows the tab.  What I end up with is
>               int i1 = 0;
> THis is no more readable than having everything shifted to the left.
> How can I stop this behavior?

Your (setq c-tab-always-indent nil) should have done that.  Can you describe
very pedantically precisely every little itsy bitsy detail of what you do,
what you expect, and what happens instead, as if you were talking to
a complete and total idiot ?

> (add-hook 'c++-mode-hook '(lambda () (setq indent-tabs-mode nil)))
                          ^^^
This quote is at best unnecessary.  Better remove it.

> (setq-default indent-tabs-mode nil)

Actually with this default setting your `add-hook' above should not be
necessary at all.

> ;(setq c-tab-always-indent t)

A single ; is indented to comment-column (trying hitting TAB, just for fun).
Use ;; instead.


        Stefan

  reply	other threads:[~2004-10-26 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 14:53 indenting Billy N. Patton
2004-10-26 17:14 ` Stefan Monnier [this message]
2004-10-26 18:04   ` indenting Billy N. Patton
2004-10-26 20:35     ` indenting Stefan Monnier

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=jwvu0shjtmk.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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).