summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2022-11-03 08:22:32 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2022-11-03 08:22:32 -0400
commit5eae98a4a4728bc102e40b039cd8f3ab129a9348 (patch)
tree3f3d1ec82d15847a53b0586c552b8dda2b1eba61 /lisp
parenta546b0b45b0e27ecfccb25393db439a03c71d16c (diff)
parent17b83695d2481e17d4e34fda861f117d7f3e4e8c (diff)
Merge branch 'master' of matthewkosarek.xyz:/srv/git/emacs_config
Diffstat (limited to 'lisp')
-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))