unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Local dot emacs files.
@ 2022-05-10 11:38 niru
  2022-05-10 12:51 ` Andreas Schwab
  2022-05-10 13:39 ` tomas
  0 siblings, 2 replies; 4+ messages in thread
From: niru @ 2022-05-10 11:38 UTC (permalink / raw)
  To: emacs-devel

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,
निरंजन





^ permalink raw reply	[flat|nested] 4+ messages in thread
* Local dot emacs files.
@ 2022-05-10 11:42 निरंजन
  0 siblings, 0 replies; 4+ messages in thread
From: निरंजन @ 2022-05-10 11:42 UTC (permalink / raw)
  To: emacs-devel

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,
निरंजन



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-10 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10 11:38 Local dot emacs files niru
2022-05-10 12:51 ` Andreas Schwab
2022-05-10 13:39 ` tomas
  -- strict thread matches above, loose matches on Subject: below --
2022-05-10 11:42 निरंजन

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