Add projectile suppot for angular

This commit is contained in:
2023-05-10 18:27:27 +02:00
parent be9bb069a2
commit 55da4fb131

15
.emacs
View File

@@ -166,6 +166,13 @@
)
:config
(projectile-mode +1)
(projectile-register-project-type 'ng2 '("angular.json" "package.json" "tsconfig.json")
:project-file "angular.json"
:compile "npm install"
:test "ng test"
:run "ng serve"
:test-suffix ".spec")
)
(use-package flycheck
@@ -225,6 +232,7 @@
("M-0" . treemacs-select-window))
:config
(add-hook 'treemacs-mode-hook (lambda () (display-line-numbers-mode -1)))
(treemacs-project-follow-mode t)
)
@@ -245,16 +253,13 @@
(use-package ng2-mode
:init
(defun atu/ng2-mode-hook ()
;;(setq indent-tabs-mode nil)
;;(setq tab-width 2)
;;(setq c-basic-offset 2)
(defun atu/ng2-ts-mode-hook ()
(setq typescript-indent-level 2)
)
:hook
(web-mode . lsp-deferred)
(typescript-mode . lsp-deferred)
(typescript-mode . atu/ng2-mode-hook)
(typescript-mode . atu/ng2-ts-mode-hook)
)
(use-package lsp-pyright