help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tabs and Spaces


From: Francis Moreau
Subject: Re: Tabs and Spaces
Date: Tue, 26 May 2009 05:29:59 -0700 (PDT)
User-agent: G2/1.0

On 25 mai, 18:15, B Smith-Mannschott <bsmith.o...@gmail.com> wrote:
> On Mon, May 25, 2009 at 12:48, Chris Gordon-Smith
>
>
>
> <use.addr...@my.homepage.invalid> wrote:
> > Hello All
>
> > I have recenly started using emacs for programming, after years using
> > KDevelop. One problem I have is indenting code. I have my own indentation
> > style. and ideally I would like to setup emacs to support it automatically.
> > However, in the short term I'll settle for having emacs convert a TAB
> > keypress into the correct number of spaces to fill whitespace up to the
> > next tabstop.
>
> > At the moment I have
>
> > (global-set-key (kbd "TAB") 'self-insert-command)
>
> > in my .emacs to force insertion of a tab, but I have to keep invoking
> > untabify manually (otherwise my code looks misaligned when I upload it to
> > Google Code).
>
> > Can anyone help.
>
> Parital solution:
>
> By default, emacs has a nasty habit of indenting with a mix of tabs
> and spaces.

I agree.

> you can disable this by setting indent-tabs-mode to nil.
> You can do this via M-x customize-apropos or by sprinkling this bit of
> elisp into your .emacs:

But what should be done if instead I want to keep tabs but don't want
to keep the alignment (silly) thing ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]