
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] emacs cc-mode
On Tue, 17 Jun 2003 9:41:32 -0400
Viktor Pavlenko <vvp@example.com> wrote:
> > I'd be still interested in how to bind this to the TAB key, so that it
> > would indent and tabify simultaneously.
>
> A quick look in the cc-mode docs reveals this:
> (setq indent-tabs-mode t)
This is for tab indentation. If the line is properly indented with spaces,
it doesn't convert it to tabs.
I had these in my .emacs:
(setq-default indent-tabs-mode t)
(setq-default c-tab-always-indent t)
> BTW, all my emacs installations (v. 21.x) come without cc-mode. They
> load c-mode for C and c++-mode for C++ despite of the fact that cc-mode
> is said to be a standard (x)emacs mode and handle C, C++, Java, IDL etc.
My debian emacs21 installation uses cc-mode for C, C++, Java. So I guess
it's standard.
Home |
Main Index |
Thread Index