From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "=?utf-8?B?4KSo4KS/4KSw4KSC4KSc4KSo?=" Newsgroups: gmane.emacs.devel Subject: Local dot emacs files. Date: Tue, 10 May 2022 11:42:25 +0000 Message-ID: <03173ed60b8befd0cf87823eea697597081e7b43@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38858"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 10 14:41:21 2022 Return-path: Envelope-to: ged-emacs-devel@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 1noPB3-0009sF-Jj for ged-emacs-devel@m.gmane-mx.org; Tue, 10 May 2022 14:41:21 +0200 Original-Received: from localhost ([::1]:35664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noPB2-0007GX-77 for ged-emacs-devel@m.gmane-mx.org; Tue, 10 May 2022 08:41:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noOGE-0004jd-SD for emacs-devel@gnu.org; Tue, 10 May 2022 07:42:41 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:56332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noOGB-0007gD-Aq for emacs-devel@gnu.org; Tue, 10 May 2022 07:42:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 60BB142E23 for ; Tue, 10 May 2022 13:42:26 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DbxSwTjBnRWk for ; Tue, 10 May 2022 13:42:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652182945; bh=hQlvyR9sHJdUr/dmNaG6p8BNRj86x+enySRghbO+3HQ=; h=Date:From:Subject:To; b=E+PdZyvYg4j9Q6tJRbRpxnYT6wg9XPbzzKX5BisHpd+ZYab869z2jVrHhUlKMzuq3 WkUa7zHJAZhLsGfOSEWE2i6dbFclW2jy04UpsEziZcoKUNB3JKkp+c4G6XDIrxl/HU +tYkvuEE0D/pVEY6pX2u9EhVtN3xvVrlT0WsMx3B47ijPUgPKpvnzrAQyMcj4gomSn wJjCoKNMjY7stajeQk0+0W+wfyHdQ3AIn6R7msIu6qAcSE6dXYunZOEipz+FWqcPb+ /ZkVetBo+/el+UVWxpJujFCwo86jeKdykIb+rCQJl4BdHjgaqwJpKaaHEQ8Xk2THGc 0xeJqqCeK7XcQ== Received-SPF: pass client-ip=178.21.23.139; envelope-from=niru@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 10 May 2022 08:39:28 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289583 Archived-At: Hello hackers, I am quite a new user of GNU-Emacs, but even while using this fantastic tool-for-life for such a short span I have felt a need for a feature which I pretty much see in various other free software, i.e., local configuration files. I will elaborate. For example while using git, I can have local .gitconfig files which have different configurations per directory, but I can have in the home directory with the default settings. I wanted to ask if it is possible to implement such a feature for GNU-Emacs which will enable the user to have different settings in different directories (including all the sub-directories which don't override that setting), e.g., In a structure like: . =E2=94=9C=E2=94=80=E2=94=80 abcd =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 pqrs =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 .emacs # Applies to pqr= s/ only =E2=94=9C=E2=94=80=E2=94=80 efgh =E2=94=94=E2=94=80=E2=94=80 .emacs # Applies to abcd/ and efgh/ I would love to see a feature which will make GNU-Emacs buffers follow the respective .emacs files like demonstrated in the comments and all files outside abcd/ using the default .emacs (found at ~/). This might be particularly helpful for dividing the workflow, e.g., I might have different directories, for say, latex/, lisp/, c/, text/ which have different settings. Is this achievable? Best, =E0=A4=A8=E0=A4=BF=E0=A4=B0=E0=A4=82=E0=A4=9C=E0=A4=A8