 
 ;; configure CSS mode company backends
 (use-package css-mode
-  :mode (("\\.css$"  . css-mode)
-         ("\\.scss$" . scss-mode))
+  :mode "\\.s?css$"
   :init
-  (push-company-backends 'css-mode '(company-css
-                                     company-dabbrev-code
-                                     company-files)))
+  (push-company-backends 'css-mode 'company-css))
 
 (provide 'lang-web)
 ;;; lang-web.el ends here

  :config
  (setq emmet-move-cursor-between-quotes t))

(use-package company-web :after web-mode)

(use-package slim-mode :mode "\\.slim$"
  :config
  (with-eval-after-load "aggressive-indent"

  (defvar aggressive-indent-excluded-modes))

(autoload 'push-company-backends "base-lib")
(autoload 'flycheck-add-mode "flycheck")

;;;
;; Packages

(use-package web-mode
  :mode "\\.\\(phtml\\|php|[agj]sp\\|as[cp]x\\|erb\\|djhtml\\|html?\\|hbs\\|ejs\\|jade\\|swig\\|tmpl\\)$"
  :init
  (add-hooks-pair 'web-mode
                  '(flycheck-mode
                    turn-off-smartparens-mode))
  :config
  (setq web-mode-enable-html-entities-fontification t
        ;; Highlight enclosing tags of the element under cursor
        web-mode-enable-current-element-highlight t)

  (with-eval-after-load "flycheck"
    (flycheck-add-mode 'html-tidy 'web-mode))

  ;; No padding for nested sections inside HTML
  (with-eval-after-load "editorconfig"
