`(after! (:all ,@features) ,@body)))))
#+end_src
+Convenience macro for =setq='ing multiple variables to the same value:
+
+#+begin_src emacs-lisp
+(defmacro setq-every! (value &rest vars)
+ "Set all the variables from VARS to value VALUE."
+ (declare (indent defun) (debug t))
+ `(progn ,@(mapcar (lambda (x) (list 'setq x value)) vars)))
+#+end_src
+
* Core
:PROPERTIES:
:CUSTOM_ID: core
("C-c l l" . hs-lint)))
#+end_src
-** SGML and HTML
+** Web dev
+
+*** SGML and HTML
#+begin_src emacs-lisp
(use-package sgml-mode
:config
- (setq sgml-basic-offset 4))
+ (setq sgml-basic-offset 2))
#+end_src
-** Web mode
+*** CSS and SCSS
+
+#+begin_src emacs-lisp
+(use-package css-mode
+ :config
+ (setq css-indent-offset 2))
+#+end_src
+
+*** Web mode
#+begin_src emacs-lisp
(use-package web-mode
- :mode "\\.html\\'")
+ :mode "\\.html\\'"
+ :config
+ (setq-every! 2
+ web-mode-code-indent-offset
+ web-mode-css-indent-offset
+ web-mode-markup-indent-offset))
#+end_src
-** Emmet mode
+*** Emmet mode
#+begin_src emacs-lisp
(use-package emmet-mode