diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-05-30 11:31:08 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-05-30 11:31:08 +0530 |
commit | e8b2adf54d8abad1a4d3a67c6af5796199fb53dc (patch) | |
tree | 32772d1f3467249dd0b7c43b582e07a2c8de8c22 /.doom.d/custom.el | |
parent | 062a582c3254cebab7189f02dc74353e72f304e8 (diff) |
set indent to 2 in emacs web
Diffstat (limited to '.doom.d/custom.el')
-rw-r--r-- | .doom.d/custom.el | 6 |
1 files changed, 6 insertions, 0 deletions
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) |