diff options
Diffstat (limited to '')
-rw-r--r-- | config/init-file.el | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/config/init-file.el b/config/init-file.el new file mode 100644 index 0000000..9c4e803 --- /dev/null +++ b/config/init-file.el @@ -0,0 +1,50 @@ +;;; init-file.el --- Configure things related to files -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;; Configure things related to files + +;;; Code: + +(require 'bookmark) + +(require 'init-util) + +(setq require-final-newline t) + +(setq bookmark-default-file (user-data "bookmarks")) + +;; Disable backup. +(setq backup-inhibited t) + +;; Disable auto save. +(setq auto-save-default nil) +(setq auto-save-list-file-prefix nil) + +;; Really, no backups +(setq make-backup-files nil) + +(require 'recentf) +(recentf-mode 1) + +(setq recentf-auto-cleanup 60) +(setq recentf-exclude + '("~\\'" "\\`out\\'" "\\.log\\'" "^/[^/]*:" "\\.el\\.gz\\'" "\\.gz\\'")) +(setq recentf-max-saved-items 2000) +(setq recentf-save-file (user-data "recentf")) + +(require 'tramp) +(setq tramp-default-method "ssh") +(setq tramp-auto-save-directory "~/.cache/emacs/backups") +(setq tramp-ssh-controlmaster-options "-o ControlMaster=auto -o ControlPath='tramp.%%C'") + +(use-package autorevert + :custom + (auto-revert-use-notify nil) + :config + (global-auto-revert-mode t)) + +(provide 'init-file) + +;;; init-file.el ends here |