diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2022-11-03 08:22:32 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2022-11-03 08:22:32 -0400 |
commit | 5eae98a4a4728bc102e40b039cd8f3ab129a9348 (patch) | |
tree | 3f3d1ec82d15847a53b0586c552b8dda2b1eba61 | |
parent | a546b0b45b0e27ecfccb25393db439a03c71d16c (diff) | |
parent | 17b83695d2481e17d4e34fda861f117d7f3e4e8c (diff) |
Merge branch 'master' of matthewkosarek.xyz:/srv/git/emacs_config
-rw-r--r-- | lisp/web.el | 18 |
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)) |