Update README.md
This commit is contained in:
@@ -122,8 +122,8 @@ One common solution to this issue is the installation of the no-littering packag
|
|||||||
|
|
||||||
However, 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`:
|
However, 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`:
|
||||||
```
|
```
|
||||||
(setq minimal-emacs-var-dir
|
;; Reducing clutter in ~/.emacs.d by redirecting files to ~/emacs.d/var/
|
||||||
(expand-file-name "var/" minimal-emacs-user-directory))
|
(setq minimal-emacs-var-dir (expand-file-name "var/" minimal-emacs-user-directory))
|
||||||
(setq package-user-dir (expand-file-name "elpa/" minimal-emacs-var-dir))
|
(setq package-user-dir (expand-file-name "elpa/" minimal-emacs-var-dir))
|
||||||
(setq user-emacs-directory minimal-emacs-var-dir)
|
(setq user-emacs-directory minimal-emacs-var-dir)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user