Переглянути джерело

don't save to clipboard on exit, save file backups in separate folder

Josh Bicking 8 роки тому
батько
коміт
9f1507910e
1 змінених файлів з 9 додано та 3 видалено
  1. 9 3
      emacs

+ 9 - 3
emacs

@@ -8,7 +8,10 @@
 (setq vc-follow-symlinks nil)
 
 ;; Leave the OS clipboard alone (use evil's "+ and "* instead)
-(setq x-select-enable-clipboard nil)
+; Don't copy and paste to the clipboard
+(setq select-enable-clipboard nil)
+; Don't save to the clipboard on exit
+(setq x-select-enable-clipboard-manager nil)
 
 ;; Text and Notes
 (setq sentence-end-double-space nil)
@@ -110,8 +113,11 @@
 
 ;;;; Files
 
-;; Disable file backup
-(setq make-backup-files nil)
+;; move file backups
+(setq backup-directory-alist
+      `((".*" . ,(concat user-emacs-directory "backups"))))
+(setq auto-save-file-name-transforms
+      `((".*" ,(concat user-emacs-directory "backups") t)))
 
 ;; Instead save undo history under .emacs.d/undo
 (setq undo-tree-auto-save-history t