Skip to content

Commit 3054d87

Browse files
committed
dir-locals.el: Do not overwrite default-directory but use eval directly
1 parent 8ea907f commit 3054d87

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.dir-locals.el

+21-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
((nil . ((eval . (setq default-directory
2-
(locate-dominating-file default-directory
3-
".dir-locals.el")))))
4-
(python-mode
5-
(flycheck-python-flake8-executable . "venv/bin/python")
6-
(flycheck-python-pylint-executable . "venv/bin/pylint")
7-
(flycheck-python-mypy-executable . "venv/bin/mypy")
8-
(flycheck-python-pycompile-executable . "venv/bin/python"))
1+
((python-mode
2+
(eval . (setq flycheck-python-flake8-executable
3+
(expand-file-name "venv/bin/python" (locate-dominating-file
4+
default-directory
5+
".dir-locals.el"))))
6+
(eval . (setq flycheck-python-pylint-executable
7+
(expand-file-name "venv/bin/python" (locate-dominating-file
8+
default-directory
9+
".dir-locals.el"))))
10+
(eval . (setq flycheck-python-mypy-executable
11+
(expand-file-name "venv/bin/mypy" (locate-dominating-file
12+
default-directory
13+
".dir-locals.el"))))
14+
(eval . (setq flycheck-python-pycompile-executable
15+
(expand-file-name "venv/bin/python" (locate-dominating-file
16+
default-directory
17+
".dir-locals.el")))))
918
(rst-mode
10-
(flycheck-rst-sphinx-executable . "venv/bin/sphinx-build")))
19+
(eval . (setq flycheck-rst-sphinx-executable
20+
(expand-file-name "venv/bin/sphinx-build" (locate-dominating-file
21+
default-directory
22+
".dir-locals.el"))))))

0 commit comments

Comments
 (0)