diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-20 15:21:35 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-20 15:21:35 +0100 |
commit | 61af1478494fb748f7f55c6e2253a7a35d663cd1 (patch) | |
tree | 50cbb8353bbdf2bb265bf587f206f51955ffb05e /.dir-locals.el | |
parent | 6b4cad768dff60e328163497f7660dfbe7d63ec2 (diff) | |
download | searxng-61af1478494fb748f7f55c6e2253a7a35d663cd1.tar.gz searxng-61af1478494fb748f7f55c6e2253a7a35d663cd1.zip |
[emacs] use NVM environment installed at nvm-dir <repo>/.nvm
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index b8f7ecc76..e1d0b8ef7 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -19,6 +19,7 @@ ;; Some buffer locals are referencing the project environment: ;; ;; - prj-root --> <repo>/ +;; - nvm-dir --> <repo>/.nvm ;; - python-environment-directory --> <repo>/local ;; - python-environment-default-root-name --> py3 ;; - python-shell-virtualenv-root --> <repo>/local/py3 @@ -57,6 +58,9 @@ (setq-local python-environment-directory (expand-file-name "./local" prj-root)) + ;; to get in use of NVM enviroment, install https://github.com/rejeep/nvm.el + (setq-local nvm-dir (expand-file-name "./.nvm" prj-root)) + ;; use 'py3' enviroment as default (setq-local python-environment-default-root-name "py3") @@ -90,6 +94,8 @@ (js-mode . ((eval . (progn + ;; flycheck should use the (local) NVM environment (see nvm-dir) + (nvm-use-for-buffer) (setq-local js-indent-level 2) ;; flycheck should use the eslint checker from simple theme (setq-local flycheck-javascript-eslint-executable |