fixes indent for angular project
This commit is contained in:
10
.emacs
10
.emacs
@@ -139,7 +139,7 @@
|
||||
(c-indent-region . c-basic-offset)
|
||||
)
|
||||
)
|
||||
(smart-tabs-insinuate 'c 'javascript 'c++ 'cmake 'nxml 'protobuf 'html 'glsl)
|
||||
(smart-tabs-insinuate 'c 'c++ 'cmake 'nxml 'protobuf 'html 'glsl)
|
||||
)
|
||||
|
||||
|
||||
@@ -253,9 +253,17 @@
|
||||
(setq lsp-ltex-version "15.2.0")) ; make sure you have set this, see below
|
||||
|
||||
(use-package ng2-mode
|
||||
:init
|
||||
(defun atu/ng2-mode-hook ()
|
||||
;;(setq indent-tabs-mode nil)
|
||||
;;(setq tab-width 2)
|
||||
;;(setq c-basic-offset 2)
|
||||
(setq typescript-indent-level 2)
|
||||
)
|
||||
:hook
|
||||
(html-mode . lsp-deferred)
|
||||
(typescript-mode . lsp-deferred)
|
||||
(typescript-mode . atu/ng2-mode-hook)
|
||||
)
|
||||
|
||||
(use-package lsp-pyright
|
||||
|
||||
Reference in New Issue
Block a user