summary refs log tree commit diff
path: root/config/init-file.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-06 11:22:57 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-06 11:22:57 -0700
commit7c5780a719565630f58e7751afa8c7e458c49871 (patch)
treef8863ebcbd4a1e551a63374b3fee589affca1393 /config/init-file.el
parentmove some display stuff (diff)
downloademacs.d-7c5780a719565630f58e7751afa8c7e458c49871.tar.gz
a org file is definitely not the way for me
Diffstat (limited to '')
-rw-r--r--config/init-file.el50
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