-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.dir-locals.el
25 lines (25 loc) · 1.13 KB
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
((nil
. ((eglot-workspace-configuration
. (:pylsp
(:plugins
(:jedi_completion
(:include_params t :fuzzy t)
:pylint
(:enabled :json-false)))
;; :gopls (:usePlaceholders t)
))))
;; (python-base-mode . ((indent-tabs-mode . nil)))
;; (go-mode . ((indent-tabs-mode . t)))
(python-mode . ((eval . (progn
(let ((project_path
(car (dir-locals-find-file
(buffer-file-name))))
(python_path_env (getenv "PYTHONPATH")))
(setq-local process-environment
(cons
(concat "PYTHONPATH="
project_path
(if python_path_env
(concat ":" python_path_env)
""))
process-environment))))))))