From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Question about dir-locals c-mode. Date: Sun, 8 Nov 2020 00:50:56 +0100 Message-ID: <20201107235056.5lwabkhbflx2gc6o@Ergus> References: <20201107235056.5lwabkhbflx2gc6o.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16062"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 08 00:52:06 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbY05-00046J-TB for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 08 Nov 2020 00:52:05 +0100 Original-Received: from localhost ([::1]:44876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbY04-0004BS-Ut for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 18:52:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbXzP-0004A4-AI for help-gnu-emacs@gnu.org; Sat, 07 Nov 2020 18:51:23 -0500 Original-Received: from sonic303-3.consmr.mail.bf2.yahoo.com ([74.6.131.42]:36701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbXzL-0002aD-33 for help-gnu-emacs@gnu.org; Sat, 07 Nov 2020 18:51:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1604793072; bh=v5UgDM43i0Zt1wBEPGDPnuz3B4E4D2fmpE3c1rB077I=; h=Date:From:To:Subject:References:From:Subject; b=Uvr3xwdJi89HltcIqztZTuwfpgC4YpQNPpcQB5286swL/GLNhzLJsL7WehYwbS3PMgQwn1o6+g+s+iCFHqi3uY5pH7PEaKAbfzXRJ7gO3psWfK3rxW4M4+8Q/gIDkYtFlbHZdfDmWO0/nW6iIKtEMfNq/XUXDo81UejsDRxjBLrmrTpk78prXs60MH7fiN4SkxTVcO2tYfWfn1lZlZpgF905PqK7pvHBIZ5spDyU+E0Qp5nWaOTI9KW3aFgvll9Le6zMNbAu1xm8oH/dRIo1ZlIw9arBKu8A7Okvllc7qskSVXf3DL6xE1dxd8ghExkq6gxUFOIMk0+gb9l1r15FNw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1604793072; bh=qpquvBFWIH2qJv/M4LSZrm3oU1qkRO9ZMDPAycOhxnD=; h=Date:From:To:Subject; b=jWciyjTUZlUJ+oxs168pAmgqjHM7hW8f8LU31qX+gZursx6A3njJ1NXuFTLnYmDP0+5U9tSz9Y0dKSBbBfn97XuktzlP7TRWgbK1MutqmxfXEMo+nLmq8kmqMX/YLn4XY7Ox1pgKJzUiOgsjHv0kY+hU9o0I9zwrjVpQhcjiEuGf0YZJWZ4ZdvnEshDGq2cffCYMN+YMWR27XPjV5Zqgmv3Z6m73NFMCUXxViLuZdZo80XdvtMZ2CDSP05NZPd2Y2SwJs7WNmuZwMWD/DghEJVLtG2o1RSaoCgX8+6YiRVRHmMz04G/YcJrF1eEiBJew5vbohZ7yUYOw4doS0rXBOA== X-YMail-OSG: RwZokQkVM1nxdf96M0TuTrLGhHU7prTvniOocByUj4gCyw4goku_UOoiMdH3LG2 eV19wPLWXoIvZv1zhIMETWduMelqjWp5kyqN7wRiGmBhnLPLS2F5NjsJTFHilTBwv93cxzBYQsD6 6TNubofxkhDU_EX21DnYFTm7D024VlTmKqaYUwouommmaMTIh0hje2OKj.h1RI2L8am2NKm1jmYq Kk5AH3bGadTiXXlhBxQDZSyOIvHVxfUMX1m6YjYkTST9GP.QfxjVfLSYsnmai_DHRDwxvC6imJSE .P_G2tDSFH1T7G8d_exVYPwTZgzNwBtMZEBDtVR6Sbc0S8Y4ihSWIjL7vL.J5aHvENf3OSDJeiuJ sLaFgIi0tI10LwCglzifX9yT6bL0Xhr32ERAt3_xD5UYNp100Cs3PaUX0jFl14g.DJJ9IDAkvRjS 6ZuLf1toCLQP56f3KAo2agILPnt1QPKM1LzY88KEM59Z1AzAufbqBfpB8tbOQ_5tkd4ngIg7iPSc VGqr3zG32FzN_j6Axz3tnKtDK4RAohTU6r9tx4_5J4TCF1SJU5kXsBkcVvuLsyW.wvN6EYHB1Gy. eGyZKSd32BXRicMjsvD_kRYnVKbyrefU9jaTYS9wgwaLLak1JbpladbC06.HN0NGI6O1mj0enzrc eHpgbZXggcAQH2YLNG8MreWjTt1ZOyTl2wYs.tq7.6uPEBOU.dHttiqEGMRrToVvRSTWiKO1Utqs U2bzZY94s45_8zg4DMdDi5jsqR8eLw7VVaEy45O.tv_ogCUVkm3O8Osvl_XM_IK46rk9Fe3ZzwqZ zViOKZ_rHUMGac8TCaNphag0o7XuDmSl4cx_nqutIz Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Sat, 7 Nov 2020 23:51:12 +0000 Original-Received: by smtp405.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d90183271806c23da4c35fdabaddda13; Sat, 07 Nov 2020 23:51:09 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.16944 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=74.6.131.42; envelope-from=spacibba@aol.com; helo=sonic303-3.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/07 18:51:12 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125098 Archived-At: Hi: This is probably a basic question, but I don't find any reference. I have a .dir-locals.el file a bit long because the project implied is a bit special regarding indentation. The problem is that the project is either C and C++ code and the indentation in both cases is retty much the same; but other files like python, bash or makefiles require different indentation. I am wondering if it is possible in the dir-locals to set a configuration either for C and C++ without repeating myself. Up to now I have: (c++-mode . (...Long...)) (c-mode . (...Long...)) But everytime I update the C config I have to copy and paste in the other... is it possible to do something equivalent to: ((or c-mode c++-mode) . (...Long...)) Thanks in advance, Ergus