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

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

Re: c-default-style


From: Eli Zaretskii
Subject: Re: c-default-style
Date: Mon, 24 Sep 2018 16:40:01 +0300

> From: Mick Bert <micbert75@gmail.com>
> Date: Mon, 24 Sep 2018 14:37:04 +0200
> 
> 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")))
> 
> The new version inherited the configuration file, but I have to set each
> time I visited a file the indenting behavior with command "c-set-style".
> What's changed in the last two major versions? How should I do it now?

I don't know what changed, but you should be able to fix your problem
by adding a call to c-set-style to your c-mode-common-hook.



reply via email to

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