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/config.el | 3 +++ .doom.d/custom.el | 6 ++++++ .doom.d/init.el | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to '.doom.d') diff --git a/.doom.d/config.el b/.doom.d/config.el index a9f3387..aac2b0a 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -37,6 +37,9 @@ ;; numbers are disabled. For relative line numbers, set this to `relative'. (setq display-line-numbers-type t) +(setq default-indent-tabs-mode nil) +(setq default-tab-width 2) +(setq doom/set-indent-width 2) ;; Here are some additional functions/macros that could help you configure Doom: ;; 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) diff --git a/.doom.d/init.el b/.doom.d/init.el index d454f6d..b6d1d0a 100644 --- a/.doom.d/init.el +++ b/.doom.d/init.el @@ -113,7 +113,7 @@ :lang ;;agda ; types of types of types of types... ;;beancount ; mind the GAAP - cc ; C > C++ == 1 + ;cc ; C > C++ == 1 ;;clojure ; java with a lisp ;;common-lisp ; if you've seen one lisp, you've seen them all ;;coq ; proofs-as-programs @@ -132,7 +132,7 @@ ;;fsharp ; ML stands for Microsoft's Language ;;fstar ; (dependent) types and (monadic) effects and Z3 ;;gdscript ; the language you waited for - ;;(go +lsp) ; the hipster dialect + (go +lsp) ; the hipster dialect (haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on -- cgit v1.2.3