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

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

Re: c-default-style


From: Mick Bert
Subject: Re: c-default-style
Date: Mon, 24 Sep 2018 16:13:29 +0200

Il giorno lun 24 set 2018 alle ore 15:48 Noam Postavsky <npostavs@gmail.com>
ha scritto:

> On Mon, 24 Sep 2018 at 08:37, Mick Bert <micbert75@gmail.com> wrote:
> >
> > With an old verion of emacs, I used to set default indenting behavior by
> > inserting in my ~/.emacs file:
> >
> > (setq c-default-style '((c-mode . "stroustrup")))
> > (setq c-default-style '((c++-mode . "stroustrup")))
> > (setq c-default-style '((objc-mode . "stroustrup")))
>
> It looks like you're throwing away your c-mode and c++-mode settings.
> I think you want something more like this:
>
> (setq c-default-style '((c-mode . "stroustrup")
>                         (c++-mode . "stroustrup")
>                         (objc-mode . "stroustrup")))
>

Looks reasonable! You are right!
It's strange it did work before (if it really was so). Maybe I copied them
wrongly from one host to the other...
--
Mick


reply via email to

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