From e8b2adf54d8abad1a4d3a67c6af5796199fb53dc Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 30 May 2022 11:31:08 +0530 Subject: set indent to 2 in emacs web --- .doom.d/custom.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.doom.d/custom.el') diff --git a/.doom.d/custom.el b/.doom.d/custom.el index d94f507..86d1415 100644 --- a/.doom.d/custom.el +++ b/.doom.d/custom.el @@ -10,3 +10,9 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) + +(defun my-web-mode-hook () + "Hooks for Web mode." + (setq web-mode-markup-indent-offset 2) +) +(add-hook 'web-mode-hook 'my-web-mode-hook) -- cgit v1.2.3