unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: निरंजन <niru@disroot.org>
To: emacs-devel@gnu.org
Subject: Local dot emacs files.
Date: Tue, 10 May 2022 11:42:25 +0000	[thread overview]
Message-ID: <03173ed60b8befd0cf87823eea697597081e7b43@disroot.org> (raw)

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:

.
├── abcd
│   └── pqrs
│   └── .emacs # Applies to pqrs/ only
├── efgh
└── .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,
निरंजन



             reply	other threads:[~2022-05-10 11:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-10 11:42 निरंजन [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-10 11:38 Local dot emacs files niru
2022-05-10 12:51 ` Andreas Schwab
2022-05-10 13:39 ` tomas

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=03173ed60b8befd0cf87823eea697597081e7b43@disroot.org \
    --to=niru@disroot.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).