diff options
author | Mountain Man <mmosmacs-dev@anu.tgwil.net> | 2023-04-09 19:30:24 -0400 |
---|---|---|
committer | Mountain Man <mmosmacs-dev@anu.tgwil.net> | 2023-04-09 19:30:24 -0400 |
commit | 8463bcd2cc93b961e771e26761109eb047070bd7 (patch) | |
tree | 32ff0a1238b2f9874483a40dbb93ffafcbd3df6f | |
parent | Set a black background in Early Init (diff) | |
download | mmosmacs-8463bcd2cc93b961e771e26761109eb047070bd7.tar.gz mmosmacs-8463bcd2cc93b961e771e26761109eb047070bd7.tar.bz2 mmosmacs-8463bcd2cc93b961e771e26761109eb047070bd7.zip |
Disable backups, auto-saves, and lockfiles
I hate seeing a bunch of `FILES~` and `#FILES#` laying around
everywhere. This disables them completely (I think).
-rw-r--r-- | init.el | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -2,3 +2,42 @@ | |||
2 | ;;; init.el | 2 | ;;; init.el |
3 | ;; | 3 | ;; |
4 | ;; Main configuration file for MMOSMacs. | 4 | ;; Main configuration file for MMOSMacs. |
5 | |||
6 | |||
7 | ;; --------------------------------------------------------------------- | ||
8 | ;;; File Management | ||
9 | ;; ---------------- | ||
10 | ;; Everything to do with file or directory management goes here. | ||
11 | ;; --------------------------------------------------------------------- | ||
12 | |||
13 | ;; --------------------------------- | ||
14 | ;; Disable backups | ||
15 | ;; --------------- | ||
16 | ;; By default, Emacs saves backup | ||
17 | ;; files, adding a `~' to the name. | ||
18 | ;; Stop saving them. | ||
19 | ;; --------------------------------- | ||
20 | |||
21 | (setq backup-inhibited t) | ||
22 | |||
23 | |||
24 | ;; --------------------------------- | ||
25 | ;; Disable auto-saves | ||
26 | ;; ------------------ | ||
27 | ;; Auto-saves are the files with | ||
28 | ;; hashes before and after the name. | ||
29 | ;; They should not exist. | ||
30 | ;; --------------------------------- | ||
31 | |||
32 | (setq auto-save-default nil) | ||
33 | |||
34 | |||
35 | ;; --------------------------------- | ||
36 | ;; Disable lockfiles | ||
37 | ;; ----------------- | ||
38 | ;; Sometimes I want to edit a locked | ||
39 | ;; file. I can handle myself, let me | ||
40 | ;; do what I want. | ||
41 | ;; --------------------------------- | ||
42 | |||
43 | (setq create-lockfiles nil) | ||