Skip to content

Commit 5c6739e

Browse files
committed
tweak(core): add an option to disable all user config files
1 parent b65ee69 commit 5c6739e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ You can customize MinEmacs' behavior via some environment variables.
125125
- `MINEMACS_IGNORE_USER_CONFIG`: space-separated values, used to disables loading
126126
`~/.minemacs.d/<file>.el` user configuration files. Accepted values for `<file>`
127127
are: `early-config`, `init-tweaks`, `modules`, `config`, `local/early-config`,
128-
`local/init-tweaks`, `local/modules` and `local/config`.
128+
`local/init-tweaks`, `local/modules` and `local/config`. Use `all` to disable all
129+
user configuration files.
129130

130131
### Load and hooks order
131132
MinEmacs loads its features and run hooks in this order:

core/me-vars.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939

4040
(defconst minemacs-ignore-user-config
4141
(when-let ((ignores (getenv "MINEMACS_IGNORE_USER_CONFIG")))
42-
(mapcar #'intern (mapcar #'downcase (split-string ignores))))
42+
(if (string= (downcase ignores) "all")
43+
'(early-config init-tweaks modules config local/early-config local/init-tweaks local/modules local/config)
44+
(mapcar #'intern (mapcar #'downcase (split-string ignores)))))
4345
"Ignore loading these user configuration files.
4446
Accepted values are: early-config, init-tweaks, modules, config,
4547
local/early-config, local/init-tweaks, local/modules and local/config.

0 commit comments

Comments
 (0)