 ;; Remove svg files made from org-roam from the recent files list
 (setq recentf-exclude '("\.svg$")) 
 
-;; No backups please
-(setq create-lockfiles nil)
-(setq make-backup-files nil)
-
-
-;;; Custom-set-variables
+;; Store all backup and autosave files in the tmp dir
+(setq backup-directory-alist
+      `((".*" . ,temporary-file-directory)))
+(setq auto-save-file-name-transforms
+      `((".*" ,temporary-file-directory t)))
+
+;;; CUSTOM-SET-VARIABLES
 (custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.

    )
  )

;;;; Escape
(use-package evil-escape
  :config
  (evil-escape-mode 1)

  (org-mode . (lambda () (define-key org-mode-map (kbd "C-k") nil)))
  )

;;;; ROAM
(use-package org-roam
  :hook
  (after-init . org-roam-mode)
