Fix backup saving

This commit is contained in:
Maciej Szlosarczyk 2017-10-29 00:26:03 +03:00
parent 9fce4365dc
commit 5bd7066cde
No known key found for this signature in database
GPG key ID: 94798DD7F02D70C1
13 changed files with 47 additions and 32 deletions

View file

@ -4,15 +4,17 @@
;;;;;;;;;;;;;;;;;;;;;;;; Overall behaviour ;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq backup-directory-alist
`(("" . "~/.emacs.d/backups")))
`((".*" . "~/.emacs_backups/auto-save-list")))
(setq auto-save-file-name-transforms
`((".*" ,"~/.emacs.d/backups/auto-save" t)))
`((".*", "~/.emacs_backups/auto-save-list" t)))
(setq backup-by-copying t)
(setq delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t)
; Use Shells variables
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
@ -40,7 +42,7 @@
; Enable line numbers and show cursors position
(global-linum-mode t)
(column-number-mode 1)
(global-hl-line-mode)
;; (global-hl-line-mode)
;; Turn off sounds
(setq ring-bell-function 'ignore)
@ -170,6 +172,10 @@
(require 'evil-magit)
;; Additional configuration for flycheck.
(require 'flycheck)
(setq flycheck-highlighting-mode 'lines)
;;;;;;;;;;;;;;;;;;;;;;;; Projectile ;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'projectile)
(projectile-mode)