[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ Indentation
From: |
Benjamin Rutt |
Subject: |
Re: C++ Indentation |
Date: |
Sun, 11 Jan 2004 00:56:41 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) |
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
- C++ Indentation, David Rasmussen, 2004/01/10
- Re: C++ Indentation,
Benjamin Rutt <=