From: Noam Postavsky <npostavs@gmail.com>
To: micbert75@gmail.com
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: c-default-style
Date: Mon, 24 Sep 2018 09:47:59 -0400 [thread overview]
Message-ID: <CAM-tV-8KkHLRNL=8zh_1hjJ8UjNy-fieAT-D_6bDZwrRs5uCwA@mail.gmail.com> (raw)
In-Reply-To: <CACE4N+XO2wyOQWDdoQNSGrSd4VYy7vNMua+6eb=6jyvEvt0J2g@mail.gmail.com>
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")))
next prev parent reply other threads:[~2018-09-24 13:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-24 12:37 c-default-style Mick Bert
2018-09-24 13:40 ` c-default-style Eli Zaretskii
2018-09-24 13:47 ` Noam Postavsky [this message]
2018-09-24 14:13 ` c-default-style Mick Bert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM-tV-8KkHLRNL=8zh_1hjJ8UjNy-fieAT-D_6bDZwrRs5uCwA@mail.gmail.com' \
--to=npostavs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=micbert75@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).