From 19e5503333ee2585a93ea9b935f286ae7bcf7f38 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 12 Aug 2024 09:43:21 -0400 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6417408..1fb5b6a 100644 --- a/README.md +++ b/README.md @@ -116,11 +116,12 @@ Emacs, by default, stores various configuration files, caches, backups, and othe One common solution to this issue is the installation of the no-littering package, which reorganizes these files into a more structured format, reducing the clutter in the `~/.emacs.d` directory. -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/post-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-user-directory user-emacs-directory) -(setq minimal-emacs-var-dir (expand-file-name "var/" minimal-emacs-user-directory)) -(setq user-emacs-directory minimal-emacs-var-dir) +(setq minimal-emacs-var-dir + (expand-file-name "var/" minimal-emacs-user-directory)) +(setq user-emacs-directory minimal-emacs-var-dir) ``` ### How to activate recentf, savehist, saveplace, and auto-revert?