   :mode (("\\.eex?\\'" . web-mode)
          ("\\.erb\\'" . web-mode))
   :init
-  (defun my-web-mode-hook ()
+  (defun rock/web-mode-hook ()
     (setq indent-tabs-mode nil
           web-mode-markup-indent-offset 2
           web-mode-css-indent-offset 2

(setq use-package-always-ensure t)

;; Use one folder for all save/history/cache files
(defconst my-backup-dir (expand-file-name "backups" user-emacs-directory))
(unless (file-exists-p my-backup-dir)
  (make-directory my-backup-dir))

;; Backup and lockfiles
(setq create-lockfiles nil
      backup-directory-alist `((".*" . ,my-backup-dir))
      auto-save-file-name-transforms `((".*" ,my-backup-dir t)))

;; Set keys for MacOS
(setq mac-command-modifier 'super

          web-mode-style-padding 2
          web-mode-script-padding 2
          web-mode-enable-current-element-highlight t))
  (add-hook 'web-mode-hook  'rock/web-mode-hook))

(use-package js2-mode
  :mode "\\.js\\'"
  :commands js2-mode
  :init
  (defun rock/js2-mode-hook ()
    (setq js2-basic-offset 2
          js2-strict-trailing-comma-warning nil
          js2-warn-about-unused-function-arguments t))
  (add-hook 'js2-mode-hook 'rock/js2-mode-hook))

(use-package css-mode
  :commands css-mode
