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

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

Re: Indenting in C++ Mode


From: August
Subject: Re: Indenting in C++ Mode
Date: Mon, 28 Feb 2005 17:31:57 +0100

On mån, 2005-02-28 at 10:39 -0500, Peter Rochford wrote:
> Dear GNU Help,
>  
> How do I customize Emacs so that when editing a C++ file the
> indentation of for loops, etc., will be 3 spaces instead of the
> default of 2 spaces? 

Add the line

(add-hook 'c++-mode-hook '(lambda () (setq c-basic-offset 3)))

to your `~/.emacs'.

-- 
August




reply via email to

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