Browse Source

add backups directory, add readme

master
opfez 8 months ago
parent
commit
bf39427e03
  1. 0
      backups/.gitkeep
  2. 13
      readme
  3. 7
      tweaks.el

0
backups/.gitkeep

13
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.

7
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 .#<filename> files.
(setq create-lockfiles nil)

Loading…
Cancel
Save