aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/lisp/et-tidy.el
blob: f50cf8f1259d7eb1ed0979a46c7bad58312cecdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;;; et-tidy.el --- Tidy up emacs -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:

(use-package no-littering
  :ensure t
  :config
  (setq auto-save-file-name-transforms
	`((".*" ,(no-littering-expand-var-file-name "auto-save/") t)))
  (setq backup-directory-alist
	`(("." . ,(no-littering-expand-var-file-name "backup/"))))
  (setq custom-file
	(expand-file-name "custom-vars.el" no-littering-etc-directory))
  (when (file-exists-p custom-file)
    (load custom-file)))

(provide 'et-tidy)
;;; et-tidy.el ends here