diff options
author | mattkae <mattkae@protonmail.com> | 2022-10-28 09:19:12 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-10-28 09:19:12 -0400 |
commit | 17b83695d2481e17d4e34fda861f117d7f3e4e8c (patch) | |
tree | 389a86ada74e14503b0d70dd8c67269c59878dd3 | |
parent | c355971b0ae82eb22b57820547dee5afba3203a2 (diff) |
Improved colors for the web
-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)) |