summary refs log tree commit diff
path: root/config/init-file.el
blob: f8dadb16887ba7a232a066b51de69819bea3e66c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
;;; 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)

(use-package recentf
  :custom
  (recentf-max-saved-items 2000)
  (recentf-max-menu-items  200)
  (recentf-exclude
   '("~\\'" "\\`out\\'" "\\.log\\'" "^/[^/]*:" "\\.el\\.gz\\'" "\\.gz\\'"))
  (recentf-save-file       (user-data "recentf"))
  (recentf-auto-cleanup 60)
  :config
  (recentf-mode t)
  (run-at-time nil 60 'recentf-save-list)
  :diminish nil)

(use-package autorevert
  :custom
  (auto-revert-use-notify nil)
  :config
  (global-auto-revert-mode t))

(provide 'init-file)

;;; init-file.el ends here