* 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
* Re: Local dot emacs files.
2022-05-10 11:38 Local dot emacs files niru
@ 2022-05-10 12:51 ` Andreas Schwab
2022-05-10 13:39 ` tomas
1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2022-05-10 12:51 UTC (permalink / raw)
To: niru; +Cc: emacs-devel
https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Local dot emacs files.
2022-05-10 11:38 Local dot emacs files niru
2022-05-10 12:51 ` Andreas Schwab
@ 2022-05-10 13:39 ` tomas
1 sibling, 0 replies; 4+ messages in thread
From: tomas @ 2022-05-10 13:39 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
On Tue, May 10, 2022 at 05:08:52PM +0530, niru@disroot.org wrote:
> 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.
See "Per-Directory Local Variables" in your trusty Emacs manual;
if you prefer a Web browser (but why? ;) online here [1]
I think this question would have been more relevant in help-gnu-emacs@gnu.org.
Cheers
[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ 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).