From 46163ae25931fb5e98f20e26943b39201028b2d5 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Fri, 5 May 2023 18:23:42 +0200 Subject: [PATCH] fixes indent for angular project --- .emacs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index 63b79a2..afd6522 100644 --- a/.emacs +++ b/.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