Skip to content

Commit 53494c0

Browse files
authored
Merge pull request #62 from panchoh/fix-typo-emacs-dot-d-slash-var
Add missing dot in `~/emacs.d/var` path
2 parents 6003831 + e66af5d commit 53494c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ In addition to *minimal-emacs.d*, startup speed is influenced by your computer's
7373
- [Preventing Emacs from saving custom.el](#preventing-emacs-from-saving-customel)
7474
- [Which other customizations can be interesting to add?](#which-other-customizations-can-be-interesting-to-add)
7575
- [Customizations: pre-early-init.el](#customizations-pre-early-initel)
76-
- [Reducing clutter in `~/.emacs.d` by redirecting files to `~/emacs.d/var/`](#reducing-clutter-in-emacsd-by-redirecting-files-to-emacsdvar)
76+
- [Reducing clutter in `~/.emacs.d` by redirecting files to `~/.emacs.d/var/`](#reducing-clutter-in-emacsd-by-redirecting-files-to-emacsdvar)
7777
- [Configuring straight.el?](#configuring-straightel)
7878
- [Configuring elpaca (package manager)](#configuring-elpaca-package-manager)
7979
- [Frequently asked questions](#frequently-asked-questions)
@@ -1045,15 +1045,15 @@ It is also recommended to read the following articles:
10451045

10461046
## Customizations: pre-early-init.el
10471047

1048-
### Reducing clutter in `~/.emacs.d` by redirecting files to `~/emacs.d/var/`
1048+
### Reducing clutter in `~/.emacs.d` by redirecting files to `~/.emacs.d/var/`
10491049

10501050
Emacs, by default, stores various configuration files, caches, backups, and other data in the `~/.emacs.d` directory. Over time, this directory can become cluttered with numerous files, making it difficult to manage and maintain.
10511051

10521052
A common solution to this issue is installing the no-littering package; however, this package is not essential.
10531053

10541054
An alternative lightweight approach is to simply change the default `~/.emacs.d` directory to `~/.emacs.d/var/`, which will contain all the files that Emacs typically stores in the base directory. This can be accomplished by adding the following code to `~/.emacs.d/pre-early-init.el`:
10551055
``` emacs-lisp
1056-
;; Reducing clutter in ~/.emacs.d by redirecting files to ~/emacs.d/var/
1056+
;; Reducing clutter in ~/.emacs.d by redirecting files to ~/.emacs.d/var/
10571057
;; IMPORTANT: This part should be in the pre-early-init.el file
10581058
(setq minimal-emacs-var-dir (expand-file-name "var/" minimal-emacs-user-directory))
10591059
(setq package-user-dir (expand-file-name "elpa" minimal-emacs-var-dir))

0 commit comments

Comments
 (0)