Browse Source

Removed unrequired if statement when checking for backup directories

master
Josh Wolfe 2 years ago
parent
commit
068f0b1dd8
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      emacs/.emacs.d/README.org

+ 2
- 4
emacs/.emacs.d/README.org View File

@@ -1761,11 +1761,9 @@ Stores all backups and temp files in =~/.bak.emacs/=
(setq backup-by-copying t) ; Stop shinanigans with links
(setq backup-directory-alist '((".*" . "~/.bak.emacs/backup/")))
;; Creates directory if it doesn't already exist
(if (eq nil (file-exists-p "~/.bak.emacs/"))
(make-directory "~/.bak.emacs/"))
(make-directory "~/.bak.emacs/" t)
;; Creates auto directory if it doesn't already exist
(if (eq nil (file-exists-p "~/.bak.emacs/auto"))
(make-directory "~/.bak.emacs/auto"))
(make-directory "~/.bak.emacs/auto" t)
;; backup in one place. flat, no tree structure
(setq auto-save-file-name-transforms '((".*" "~/.bak.emacs/auto/" t)))
#+END_SRC

Loading…
Cancel
Save