aboutsummaryrefslogtreecommitdiff
path: root/.doom.d
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-05-30 11:31:08 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-05-30 11:31:08 +0530
commite8b2adf54d8abad1a4d3a67c6af5796199fb53dc (patch)
tree32772d1f3467249dd0b7c43b582e07a2c8de8c22 /.doom.d
parent062a582c3254cebab7189f02dc74353e72f304e8 (diff)
set indent to 2 in emacs web
Diffstat (limited to '.doom.d')
-rw-r--r--.doom.d/config.el3
-rw-r--r--.doom.d/custom.el6
-rw-r--r--.doom.d/init.el4
3 files changed, 11 insertions, 2 deletions
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