From 611f0e7f0cc4c9f68267f1709acfc41d3e83fbab Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:31:21 -0400 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index bea4a4c..26bcd12 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ A [user commented on Reddit](https://www.reddit.com/r/emacs/comments/1feaf37/com - [Are post-early-init.el and pre-init.el the same file in terms of the logic?](#are-post-early-initel-and-pre-initel-the-same-file-in-terms-of-the-logic) - [Why the reflexive disabling of the menu bar?](#why-the-reflexive-disabling-of-the-menu-bar) - [Why did the author develop minimal-emacs.d?](#why-did-the-author-develop-minimal-emacsd) + - [How to keep minimal-emacs.d pre-\*.el and post-\*.el files in a separate directory?](#how-to-keep-minimal-emacsd-pre-el-and-post-el-files-in-a-separate-directory) - [Features](#features) - [Author and license](#author-and-license) - [Links](#links) @@ -610,6 +611,15 @@ Other UI features can also be enabled by adding the following to `~/.emacs.d/pre The author began working on it after realizing that no existing starter kit offered a truly minimal setup with the flexibility for users to choose exactly what to include in their configuration. +### How to keep minimal-emacs.d pre-\*.el and post-\*.el files in a separate directory? + +To ensure the `minimal-emacs.d` configuration loads `post-early-init.el`, `pre-init.el`, and `post-init.el` from a different directory, such as `~/.config/min-emacs/`, modify the `minimal-emacs-user-directory` variable by adding the following to your `~/.emacs.d/pre-early-init.el` file: +```elisp +(setq minimal-emacs-user-directory "~/.config/min-emacs/") +``` + +This will ensure that the `minimal-emacs.d` configuration loads `post-early-init.el`, `pre-init.el`, and `post-init.el` from `~/.config/min-emacs/`. + ## Features 1. **Performance Improvements:**