From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: c-default-style Date: Mon, 24 Sep 2018 09:47:59 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1537796794 22855 195.159.176.226 (24 Sep 2018 13:46:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2018 13:46:34 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: micbert75@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 24 15:46:30 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4RC2-0005rI-AX for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 15:46:30 +0200 Original-Received: from localhost ([::1]:45339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4RE8-0008MG-S4 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2018 09:48:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4RDf-0008M9-Ls for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 09:48:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4RDe-0008Vc-QK for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 09:48:11 -0400 Original-Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:41113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4RDe-0008VC-IW for help-gnu-emacs@gnu.org; Mon, 24 Sep 2018 09:48:10 -0400 Original-Received: by mail-ot1-x32c.google.com with SMTP id e18-v6so19884904oti.8 for ; Mon, 24 Sep 2018 06:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tRAQM8AZIq6Lgc1s+F4ntFmciqDtmCG9c/mGFpmz2/w=; b=sP5kXmnoKd6KF6HgObjpuwMXOakUHZ9ewOSGIESi6Rg9PAb6pHUTMuDblFHIV9Gnrw /CJq67CeVhqlFEg1nOoq8jSuR+cG7czYmzxl0KGislCksEO94q3+8SuYyUSU3augAmuQ fX5wfR6j4U37IbC10dfx0C8XphgOV58wQC5A5e6wtexFkbfCujmGnhKSr4eFPn3+vH5G TiMiMgfZBdKR8ERA2HWRmksGQNbYAufUFOGE6aEzfTwJ66CbcHgpPmmBMhm7xoCDCPIj l2zasLI7loWqOgo27nOEc04a09Xstbx1jhw4Kt9dkkjl0YMLX93YQxEvcirG/lJIHzoJ ARIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tRAQM8AZIq6Lgc1s+F4ntFmciqDtmCG9c/mGFpmz2/w=; b=L3mRxvEOB4gOQ5etVaW/u/itePW6hjVi0NUzYTVeHVq7QLS7MWuwF9+Bfr+u7uR0o3 mI+OPkrTysnTIfaY/UaSw7dKfZYjIcDaqC+7FwU0GI9P3Ecvt67gufTOCEDdJ37D0eOj Eoui6Vc7X4jJ6viUlBbLswlqm8/DfYxqF4kXGAcNE/KfXncZ4ahIW3dRZY9aprHrFFd4 D0mlO6+AwuCQnyTEsrz3fwXjssW9FFkV64H0CdcQ92xT6Rp8vaGnw5aISZzwQFEotI4k n696JHH/Od1AFjmW/6RLU2QHUEUFPBV/HluaetSZB6NP8jb9OjWN0WcvY5kDky+UQcWN GoQA== X-Gm-Message-State: ABuFfogH4uT91uiGOnKLqH/53qPRPnxXuTt5eDb+rb5CNEzoAu/nH8fY eSFHgLQO4AP9IAiF75ochj01pD5VSuQGRhoxoGc= X-Google-Smtp-Source: ACcGV63phv9OK8IieL22XUsRh3m6G3Fyn0YBZXNb3BGB+hy/jhdr2rmh2puJZtOiBKIf6bIPQAUTIybY7aiplLlK+o0= X-Received: by 2002:a9d:36a:: with SMTP id 97-v6mr6452078otv.165.1537796890008; Mon, 24 Sep 2018 06:48:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117995 Archived-At: On Mon, 24 Sep 2018 at 08:37, Mick Bert 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")))