On 2011/07/18 23:19:44, Graham Percival wrote: > here's a series of patches for the C++ ...
13 years, 9 months ago
(2011-07-19 06:46:39 UTC)
#2
On 2011/07/18 23:19:44, Graham Percival wrote:
> here's a series of patches for the C++ formatting.
> - final (?) set of changes to fixcc.py
> - changes to CG
Now that we do not want tabs in indents, it would
be nice to add
(setq indent-tabs-mode nil)
to emacs' suggested setup of C++ and Python hooks.
Possibly we can also add .vimrc hints for that.
http://codereview.appspot.com/4760056/diff/1/Documentation/contributor/programming-work.itexi File Documentation/contributor/programming-work.itexi (right): http://codereview.appspot.com/4760056/diff/1/Documentation/contributor/programming-work.itexi#newcode334 Documentation/contributor/programming-work.itexi:334: for normal contributors or developers/ / is a typo?
13 years, 9 months ago
(2011-07-19 07:20:07 UTC)
#3
On 2011/07/19 06:46:39, jan.nieuwenhuizen wrote: > On 2011/07/18 23:19:44, Graham Percival wrote: > > here's ...
13 years, 9 months ago
(2011-07-19 13:40:27 UTC)
#4
On 2011/07/19 06:46:39, jan.nieuwenhuizen wrote:
> On 2011/07/18 23:19:44, Graham Percival wrote:
> > here's a series of patches for the C++ formatting.
> > - final (?) set of changes to fixcc.py
> > - changes to CG
>
> Now that we do not want tabs in indents, it would
> be nice to add
>
> (setq indent-tabs-mode nil)
>
> to emacs' suggested setup of C++ and Python hooks.
> Possibly we can also add .vimrc hints for that.
for .vimrc:
set expandtab
On Tue, Jul 19, 2011 at 06:46:39AM +0000, jan.nieuwenhuizen@gmail.com wrote: > Now that we do ...
13 years, 9 months ago
(2011-07-19 22:56:29 UTC)
#6
On Tue, Jul 19, 2011 at 06:46:39AM +0000, jan.nieuwenhuizen@gmail.com wrote:
> Now that we do not want tabs in indents, it would
> be nice to add
>
> (setq indent-tabs-mode nil)
>
> to emacs' suggested setup of C++ and Python hooks.
Um. Like this?
(add-hook 'c++-mode-hook
'(lambda() (c-set-style "gnu"))
(setq indent-tabs-mode nil)
)
I have no clue how the .emacs is supposed to look...?
Cheers,
- Graham
On Mon, Jul 25, 2011 at 12:54:55PM +0200, Jan Nieuwenhuizen wrote: > Graham Percival writes: ...
13 years, 9 months ago
(2011-07-25 20:14:33 UTC)
#8
On Mon, Jul 25, 2011 at 12:54:55PM +0200, Jan Nieuwenhuizen wrote:
> Graham Percival writes:
>
> > I have no clue how the .emacs is supposed to look...?
>
> Lisp is quite like scheme; like this
>
> (add-hook 'c++-mode-hook
> '(lambda ()
> (setq indent-tabs-mode nil)
> (c-set-style "gnu")))
Thanks, fixed.
Cheers,
- Graham
Issue 4760056: CG: describe new C++ formatting (GOP-PROP 3)
(Closed)
Created 13 years, 9 months ago by Graham Percival (old account)
Modified 13 years, 9 months ago
Reviewers: janneke, Janek Warchol, Carl, Graham Percival, janneke_gnu.org
Base URL:
Comments: 1