From 8463bcd2cc93b961e771e26761109eb047070bd7 Mon Sep 17 00:00:00 2001 From: Mountain Man Date: Sun, 9 Apr 2023 19:30:24 -0400 Subject: Disable backups, auto-saves, and lockfiles I hate seeing a bunch of `FILES~` and `#FILES#` laying around everywhere. This disables them completely (I think). --- init.el | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/init.el b/init.el index c80a169..302aad5 100644 --- a/init.el +++ b/init.el @@ -2,3 +2,42 @@ ;;; init.el ;; ;; Main configuration file for MMOSMacs. + + +;; --------------------------------------------------------------------- +;;; File Management +;; ---------------- +;; Everything to do with file or directory management goes here. +;; --------------------------------------------------------------------- + +;; --------------------------------- +;; Disable backups +;; --------------- +;; By default, Emacs saves backup +;; files, adding a `~' to the name. +;; Stop saving them. +;; --------------------------------- + +(setq backup-inhibited t) + + +;; --------------------------------- +;; Disable auto-saves +;; ------------------ +;; Auto-saves are the files with +;; hashes before and after the name. +;; They should not exist. +;; --------------------------------- + +(setq auto-save-default nil) + + +;; --------------------------------- +;; Disable lockfiles +;; ----------------- +;; Sometimes I want to edit a locked +;; file. I can handle myself, let me +;; do what I want. +;; --------------------------------- + +(setq create-lockfiles nil) -- cgit v1.2.3