add backups directory, add readme
This commit is contained in:
parent
ec0f1d1e1f
commit
bf39427e03
|
@ -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.
|
|
@ -24,16 +24,15 @@
|
||||||
(let ((family (face-attribute 'default :family))
|
(let ((family (face-attribute 'default :family))
|
||||||
(height (face-attribute 'default :height)))
|
(height (face-attribute 'default :height)))
|
||||||
(mapcar (lambda (face)
|
(mapcar (lambda (face)
|
||||||
(face-remap-add-relative
|
(face-remap-add-relative
|
||||||
face :family family :slant 'normal :weight 'normal :height height))
|
face :family family :slant 'normal :weight 'normal :height height))
|
||||||
(face-list))))
|
(face-list))))
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
(add-hook 'minibuffer-setup-hook 'remap-faces-default-attributes)
|
(add-hook 'minibuffer-setup-hook 'remap-faces-default-attributes)
|
||||||
(add-hook 'change-major-mode-after-body-hook 'remap-faces-default-attributes))
|
(add-hook 'change-major-mode-after-body-hook 'remap-faces-default-attributes))
|
||||||
|
|
||||||
;; Move backup files to another folder.
|
;; Move backup files to another folder.
|
||||||
(setq backup-directory-alist '((".*" . "~/.emacs.d/backups/"))
|
(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")))
|
||||||
auto-save-file-name-transforms '((".*" "~/.emacs.d/backups/" t)))
|
|
||||||
|
|
||||||
;; don't create .#<filename> files.
|
;; don't create .#<filename> files.
|
||||||
(setq create-lockfiles nil)
|
(setq create-lockfiles nil)
|
||||||
|
|
Loading…
Reference in New Issue