[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-default-style
From: |
Noam Postavsky |
Subject: |
Re: c-default-style |
Date: |
Mon, 24 Sep 2018 09:47:59 -0400 |
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")))