 (use-package company-web
   ;; https://github.com/osv/company-web
   ;; Emacs company backend for html, jade, slim
-  :hook ((html-mode
+  :hook ((web-mode
           . (lambda ()
               (setq company-backends
                     (append '(company-web-html) company-backends)))))
   :config
   (require 'company-web-html))
+
+(use-package web-mode
+  ;; https://github.com/fxbois/web-mode
+  ;; Web template editing mode for emacs
+  :ensure nil
+  :quelpa ((web-mode :fetcher github
+                     :repo "fxbois/web-mode"
+                     :commit "3ff506a"))
+  :init
+  (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
+  (add-to-list 'auto-mode-alist '("\\.[s]css?\\'" . web-mode))
+  (setq web-mode-markup-indent-offset 2
+        web-mode-css-indent-offset 2
+        web-mode-code-indent-offset 2)
+  (sp-local-pair 'web-mode "%" "%")
+  :config
+  (require 'web-mode))


;;; ..:: Theming and code aesthetics ::..

;; Auto-create matching closing parentheses
(electric-pair-mode 1)

(use-package rainbow-delimiters
  ;; https://github.com/Fanael/rainbow-delimiters
  ;; Highlights delimiters such as parentheses, brackets or braces
  ;; according to their depth.
  :hook ((prog-mode . rainbow-delimiters-mode)))

;;;;  Highlight matching parentheses


         ("\\.markdown\\'" . markdown-mode))
  :init (setq markdown-command "multimarkdown")
  (add-hook 'markdown-mode-hook
            (lambda ()
              (filladapt-mode -1)
              (setq-local markdown-enable-math t)))
  (sp-local-pair 'markdown-mode "%" "%")
  (sp-local-pair 'markdown-mode "$" "$" :insert "C-c f e")
  (sp-local-pair 'markdown-mode "$$" "$$" :insert "C-c f d e"))

;;; ..:: Bash ::..

