From 82bde1fd22239c16df3695e590a8348e66073b4f Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sun, 1 Dec 2024 19:21:38 -0500 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cec0a8..6da4ae7 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ The author is using **[minimal-emacs.d](https://github.com/jamescherti/minimal-e - [How to configure elpaca (package manager)](#how-to-configure-elpaca-package-manager) - [Which other customizations can be interesting to add?](#which-other-customizations-can-be-interesting-to-add) - [Frequently asked questions](#frequently-asked-questions) - - [How to load a local lisp file for machine-specific customizations?](#how-to-load-a-local-lisp-file-for-machine-specific-customizations) + - [How to load a local lisp file for machine-specific configurations?](#how-to-load-a-local-lisp-file-for-machine-specific-configurations) + - [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 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) @@ -663,6 +664,7 @@ To configure `corfu` and `cape`, add the following to `~/.emacs.d/post-init.el`: (display-time-mode) (show-paren-mode +1) ; Paren match highlighting (winner-mode 1) +(delete-selection-mode 1) ; Replace selected text with typed text (pixel-scroll-precision-mode 1) ;; Configure Emacs to ask for confirmation before exiting @@ -689,7 +691,7 @@ It is also recommended to read the following articles: ## Frequently asked questions -### How to load a local lisp file for machine-specific customizations? +### How to load a local lisp file for machine-specific configurations? Add the following line to the end of your `post-init.el` file: ```lisp @@ -700,6 +702,14 @@ This allows `local.el` to load, enabling custom configurations specific to the m (Ensure that `local.el` is in the same directory as `post-init.el`.) +### How to load Emacs customizations? + +To load customizations saved by Emacs (`M-x customize`), add the following code snippet to the `post-init.el` file. This ensures that the custom file, typically set to a separate file for user preferences, is loaded without errors or messages during startup: + +```elisp +(load custom-file 'noerror 'nomessage) +``` + ### How to increase gc-cons-threshold? Add the following to `~/.emacs.d/pre-early-init.el` to ensure that *minimal-emacs.d* restores the specified amount after startup: