emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Project local variables.


From: Ergus
Subject: Project local variables.
Date: Tue, 3 Nov 2020 20:41:40 +0100

Hi:

Looking at the evolution of project.el I want to know if there is any
sort of project local environment/namespace/scope. The idea is to
provide some variables that could be shared by all the files in the same
project but that could be modified by external-packages at the elisp
level. something like "setq-project"??

A use case is for example when working in tramp some operations are
expensive like looking for an executable in the remote system. The
search could be made only once; but then if a local file is open the
cached value will be wrong. The other case is to use the buffer-local
variables, but then it will need to be initialized once/per file every
time a file is open. Something that in my case affected performance
especially with lsp and elpy

Currently I am using a work-around with a global hash-table and a
variable definer in the dir-locals.el as a prefix, but maybe something
more elegant should/must be already implemented and I am not aware of??

Best,
Ergus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]