From 18cccf8ce0b0ac454b74f6ce81219a42117aa447 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sat, 17 Dec 2022 10:46:19 -0500 Subject: Improved CSS mode, removed the dashboard (it was useless), and added go mode --- lisp/web.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lisp/web.el') diff --git a/lisp/web.el b/lisp/web.el index e71673d..d05fa34 100644 --- a/lisp/web.el +++ b/lisp/web.el @@ -10,7 +10,6 @@ ) (use-package web-mode - :mode ("\\.html\\'" . web-mode) :config (setq web-mode-markup-indent-offset 2 web-mode-code-indent-offset 2 @@ -20,8 +19,6 @@ ) (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)) (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode)) @@ -93,5 +90,11 @@ (add-to-list 'projectile-globally-ignored-directories "node_modules") (add-to-list 'projectile-project-root-files "package.json")) +;; CSS eldoc +(use-package css-eldoc + :commands turn-on-css-eldoc + :config + (add-hook 'css-mode-hook 'turn-on-css-eldoc)) + (provide 'web) ;;; web.el ends here -- cgit v1.2.1