ADD backup configuration
Store backups in <emacs-root>/backups
This commit is contained in:
parent
49e26e5568
commit
1549038f73
1 changed files with 21 additions and 0 deletions
|
|
@ -285,6 +285,27 @@
|
||||||
(recentf-mode 1)
|
(recentf-mode 1)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Backups
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defvar myrmi-backup-directory (concat user-emacs-directory "backups"))
|
||||||
|
(if (not (file-exists-p myrmi-backup-directory))
|
||||||
|
(make-directory myrmi-backup-directory t)
|
||||||
|
)
|
||||||
|
(setq backup-directory-alist `(("." . ,myrmi-backup-directory)))
|
||||||
|
(setq make-backup-files t
|
||||||
|
backup-by-copying t
|
||||||
|
version-control t
|
||||||
|
delete-old-versions t
|
||||||
|
delete-by-moving-to-trash t
|
||||||
|
kept-old-versions 6
|
||||||
|
kept-new-versions 9
|
||||||
|
auto-save-default t
|
||||||
|
auto-save-timeout 20
|
||||||
|
auto-save-interval 200
|
||||||
|
)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Yes-or-no
|
** Yes-or-no
|
||||||
|
|
||||||
Because I'm lazy, important yes-or-no questions can be answered with y-or-n:
|
Because I'm lazy, important yes-or-no questions can be answered with y-or-n:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue