 (use-package projectile
   :diminish projectile-mode
   :init
-  (setq projectile-cache-file (expand-file-name  "projectile.cache" my-backup-dir))
-  (setq projectile-known-projects-file (expand-file-name "projectile-bookmarks.eld" my-backup-dir))
+  (setq projectile-cache-file (expand-file-name  "projectile.cache" rock/backup-dir))
+  (setq projectile-known-projects-file (expand-file-name "projectile-bookmarks.eld" rock/backup-dir))
   (setq projectile-completion-system 'ivy)
   :config
   (projectile-global-mode)

  :mode (("\\.eex?\\'" . web-mode)
         ("\\.erb\\'" . web-mode))
  :init
  (defun my-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 rock/backup-dir (expand-file-name "backups" user-emacs-directory))
(unless (file-exists-p rock/backup-dir)
  (make-directory rock/backup-dir))

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

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