 (defun my-web-mode-hook ()
   "Change when using web mode."
   (setq web-mode-markup-indent-offset 2)
-  (setq web-mode-css-indent-offset 2)
   (setq web-mode-code-indent-offset 2)
   (setq web-mode-indent-style 4)
   (global-set-key (kbd "C-c C-c") 'web-mode-fold-or-unfold))

(add-hook 'web-mode-hook  'rainbow-delimiters-mode)
(add-hook 'web-mode-hook  'emmet-mode)
(add-hook 'web-mode-hook  'highlight-numbers-mode)
(add-hook 'magit-status-mode-hook 'magit-keys)
(add-hook 'magit-log-mode-hook 'magit-keys)
(add-hook 'magit-diff-mode-hook 'magit-keys)

;;-------------------------WEB-mode--------------
(require 'web-mode)
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
