Uses .dir-locals to set-up angular project

This commit is contained in:
2023-05-11 18:15:44 +02:00
parent 55da4fb131
commit 4ccaa82bc5

7
.emacs
View File

@@ -169,7 +169,7 @@
(projectile-register-project-type 'ng2 '("angular.json" "package.json" "tsconfig.json")
:project-file "angular.json"
:compile "npm install"
:test "ng test"
:test "ng test --progress=false"
:run "ng serve"
:test-suffix ".spec")
@@ -252,14 +252,9 @@
(setq lsp-ltex-version "15.2.0")) ; make sure you have set this, see below
(use-package ng2-mode
:init
(defun atu/ng2-ts-mode-hook ()
(setq typescript-indent-level 2)
)
:hook
(web-mode . lsp-deferred)
(typescript-mode . lsp-deferred)
(typescript-mode . atu/ng2-ts-mode-hook)
)
(use-package lsp-pyright