add backups directory, add readme

This commit is contained in:
opfez 2021-05-16 17:58:59 +02:00
parent ec0f1d1e1f
commit bf39427e03
3 changed files with 16 additions and 4 deletions

0
backups/.gitkeep Normal file
View File

13
readme Normal file
View File

@ -0,0 +1,13 @@
This is my emacs configuration.
Files:
- init.el: Entrypoint. This file loads all other files and has some settings of
its own.
- essential.el: This file contains the stuff that should be loaded first and
that I probably will never change (apart from the theme, maybe). It also
contains startup configuration for the package manager.
- packages.el: All the packages required by the configuration. They are managed
with use-package.
- tweaks.el: Mostly just tweaks correcting the (many) horrible defaults of
GNU Emacs. Also contains some improvements I doubt I will remove.
- custom.el: Contains keybinds and custom functions.

View File

@ -32,8 +32,7 @@
(add-hook 'change-major-mode-after-body-hook 'remap-faces-default-attributes))
;; Move backup files to another folder.
(setq backup-directory-alist '((".*" . "~/.emacs.d/backups/"))
auto-save-file-name-transforms '((".*" "~/.emacs.d/backups/" t)))
(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")))
;; don't create .#<filename> files.
(setq create-lockfiles nil)