aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.el1
-rw-r--r--lisp/init-html.el13
2 files changed, 14 insertions, 0 deletions
diff --git a/init.el b/init.el
index d37c483..1285ed3 100644
--- a/init.el
+++ b/init.el
@@ -48,6 +48,7 @@
;; Languages
(require 'init-ccc)
(require 'init-crystal)
+(require 'init-html)
(require 'init-markdown)
(require 'init-python)
(require 'init-pkgbuild)
diff --git a/lisp/init-html.el b/lisp/init-html.el
new file mode 100644
index 0000000..b2ad2ef
--- /dev/null
+++ b/lisp/init-html.el
@@ -0,0 +1,13 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;
+;; HTML Mode
+;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(add-hook 'html-mode-hook
+ (lambda ()
+ ;; Default indentation is usually 2 spaces, changing to 4.
+ (set (make-local-variable 'sgml-basic-offset) 4)))
+
+;; highlight-indent-guides-mode
+(add-hook 'html-mode-hook 'highlight-indent-guides-mode)
+
+(provide 'init-html)