From: "Billy N. Patton" <b-patton@ti.com>
Subject: Re: indenting
Date: Tue, 26 Oct 2004 13:04:46 -0500 [thread overview]
Message-ID: <clm3ju$gio$1@home.itg.ti.com> (raw)
In-Reply-To: <jwvu0shjtmk.fsf-monnier+gnu.emacs.help@gnu.org>
Stefan Monnier wrote:
>>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 ?
I want to type:
int<tab><tab>i1<tab><tab><tab><tab>= 0;
char*<tab>a_pointer<tab><tab> = null;
to end with
int i = 0;
char* a_pointer = null;
but what I get now is:
int i = 0;
char* a_pointer = null;
>
>
>>(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
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, b-patton@ti.com
next prev parent reply other threads:[~2004-10-26 18:04 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 ` indenting Stefan Monnier
2004-10-26 18:04 ` Billy N. Patton [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='clm3ju$gio$1@home.itg.ti.com' \
--to=b-patton@ti.com \
/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.
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.