Update README.md
This commit is contained in:
11
README.md
11
README.md
@@ -64,6 +64,7 @@ In addition to *minimal-emacs.d*, startup speed is influenced by your computer's
|
||||
- [How to load Emacs customizations?](#how-to-load-emacs-customizations)
|
||||
- [How to increase gc-cons-threshold?](#how-to-increase-gc-cons-threshold)
|
||||
- [How to change the outline-mode or outline-minor-mode Ellipsis (...) to (▼)?](#how-to-change-the-outline-mode-or-outline-minor-mode-ellipsis--to-)
|
||||
- [How to prevent Emacs from loading .dir-locals.el files?](#how-to-prevent-emacs-from-loading-dir-localsel-files)
|
||||
- [How to make minimal-emacs.d use an environment variable to change ~/.emacs.d to another directory?](#how-to-make-minimal-emacsd-use-an-environment-variable-to-change-emacsd-to-another-directory)
|
||||
- [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 is the menu bar disabled by default?](#why-is-the-menu-bar-disabled-by-default)
|
||||
@@ -1138,6 +1139,16 @@ Add the following to `~/.emacs.d/pre-early-init.el` to ensure that *minimal-emac
|
||||
|
||||
If you want to to change the outline-mode or outline-minor-mode Ellipsis (...) to (▼), use the code snippet in this article: [Changing the Ellipsis (“…”) in outline-mode and outline-minor-mode](https://www.jamescherti.com/emacs-customize-ellipsis-outline-minor-mode/).
|
||||
|
||||
### How to prevent Emacs from loading .dir-locals.el files?
|
||||
|
||||
By default, Emacs loads `.dir-locals.el` from the current directory or its parents and applies project-specific settings such as indentation, compilation commands, or custom minor modes. While useful in many cases, this behavior can introduce unintended overrides, inconsistencies, or even security risks when working with untrusted projects.
|
||||
|
||||
If you want to prevent Emacs from applying these directory-local settings, you can disable `.dir-locals.el` by setting `enable-dir-local-variables` to `nil`:
|
||||
|
||||
``` emacs-lisp
|
||||
(setq enable-dir-local-variables nil)
|
||||
```
|
||||
|
||||
### How to make minimal-emacs.d use an environment variable to change ~/.emacs.d to another directory?
|
||||
|
||||
Add the following to the top of the `~/.emacs.d/pre-early-init.el` file to make *minimal-emacs.d* use the `MINIMAL_EMACS_USER_DIRECTORY` environment variable to change `~/.emacs.d` to another directory:
|
||||
|
||||
Reference in New Issue
Block a user