summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/web.el18
1 files changed, 14 insertions, 4 deletions
diff --git a/lisp/web.el b/lisp/web.el
index 7f4ad65..d507f77 100644
--- a/lisp/web.el
+++ b/lisp/web.el
@@ -1,15 +1,25 @@
;;; Code:
;; web mode
+
+(defun my-web-mode-colors ()
+ "Set colors for web mode."
+ (set-face-background 'web-mode-current-element-highlight-face "#FFFDD0")
+ (set-face-background 'web-mode-current-column-highlight-face "gray97")
+ (set-face-foreground 'web-mode-current-element-highlight-face "black")
+ )
+
(use-package web-mode
:mode ("\\.html\\'" . web-mode)
:config (setq
- web-mode-markup-indent-offset 2
- web-mode-code-indent-offset 2
- web-mode-css-indent-offset 2
+ web-mode-markup-indent-offset 2
+ web-mode-code-indent-offset 2
+ web-mode-css-indent-offset 2
web-mode-enable-current-element-highlight t
web-mode-enable-current-column-highlight t
- ))
+ )
+ (my-web-mode-colors)
+ )
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))