* C++ Indentation
@ 2004-01-10 23:11 David Rasmussen
2004-01-11 5:56 ` Benjamin Rutt
0 siblings, 1 reply; 2+ messages in thread
From: David Rasmussen @ 2004-01-10 23:11 UTC (permalink / raw)
I want both automatic indentation, and manually inserted tabs to be 2
spaces (no tab characters). I use the ellemtel style. And when I press
tab, it indents 4 spaces, not 2.
Help?
/David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C++ Indentation
2004-01-10 23:11 C++ Indentation David Rasmussen
@ 2004-01-11 5:56 ` Benjamin Rutt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Rutt @ 2004-01-11 5:56 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> I want both automatic indentation, and manually inserted tabs to be 2
> spaces (no tab characters). I use the ellemtel style. And when I press
> tab, it indents 4 spaces, not 2.
(defun my-c++-hook ()
(interactive)
(setq indent-tabs-mode nil)
(setq c-basic-offset 2)
(setq tab-stop-list '(2 4 6 8 10 12 14 16 18 20 22 24 26 28 30)))
(add-hook 'c++-mode-hook 'my-c++-hook)
--
Benjamin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-11 5:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-10 23:11 C++ Indentation David Rasmussen
2004-01-11 5:56 ` Benjamin Rutt
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).