diff --git a/backups/.gitkeep b/backups/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/readme b/readme new file mode 100644 index 0000000..ee08465 --- /dev/null +++ b/readme @@ -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. diff --git a/tweaks.el b/tweaks.el index 49454db..570f97b 100644 --- a/tweaks.el +++ b/tweaks.el @@ -24,16 +24,15 @@ (let ((family (face-attribute 'default :family)) (height (face-attribute 'default :height))) (mapcar (lambda (face) - (face-remap-add-relative - face :family family :slant 'normal :weight 'normal :height height)) + (face-remap-add-relative + face :family family :slant 'normal :weight 'normal :height height)) (face-list)))) (when (display-graphic-p) (add-hook 'minibuffer-setup-hook 'remap-faces-default-attributes) (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 .# files. (setq create-lockfiles nil)