MinEmacs is a complete and fast Emacs configuration framework.

Long story short, I’m relaying on Emacs for my everyday’s work, so I needed a fast and stable configuration that fits my needs. MinEmacs is changing constantly, please refer to the change log for more information. See also the list of MinEmacs’ modules and packages.
Note
Please note that I have no intent or availability to create an alternative to Doom Emacs or Spacemacs. While I find joy (like every other Emacser out there) in tinkering with Emacs, MinEmacs remains just a tool that I use in my everyday work, and that I like to share with other Emacsers.
MinEmacs comes with batteries included. Here are some of its unique features:
Defer loading packages until the user needs them. Or, for packages that needs to be loaded, try to do that after starting Emacs.
The packages are grouped in modules, with a bit of glue to make them work together.
MinEmacs includes a large number of major-modes and packages to work with
programming languages. However, the majority of these packages aren’t loaded at
startup. MinEmacs uses an on-demand system to load the packages only when the
user opens a supported file, or when he opens a buffer with a mode that can be
extended by one of the on-demand modules. The behavior of this feature
customized via minemacs-on-demand-enable-auto-mode,
minemacs-on-demand-enable-magic-mode,
minemacs-on-demand-enable-interpreter-mode and
minemacs-on-demand-enable-companion-packages.
Open a shell and run:
git clone --recursive https://github.com/abougouffa/minemacs.git ~/.emacs.d && emacs
By executing this command, the repository will be cloned, and Emacs will be
launched. During the initial run, Emacs will automatically install the necessary
packages. You might need to run M-x minemacs-run-build-functions when Emacs
loads up to install some extra stuff (build some libraries, install Nerd Fonts,
etc.)
Important
Please note that I’m using a fresh Emacs 32.0.50 build. However, I have set up some basic Github CI actions that automatically test running this configuration on Emacs 30, 31 and 32 in Ubuntu Linux and MacOS and on Emacs 30 in Windows. These actions ensure that MinEmacs is “runnable” on these systems; with all its modules enabled. However, further testing should be done to properly validate the configuration as a whole on systems other than Linux.
To personalize MinEmacs, you can add a specific set of files within the default
user configuration directory, which is located by default at ~/.minemacs.d/ or
.emacs.d/user-config/ (the first to be found). However, if you prefer to use a
different directory, you have the flexibility to do so by setting the
MINEMACSDIR environment variable.
There are two main files that can be added in the ~/.minemacs.d directory:
~/.minemacs.d/modules.el file contains a list of enabled modules and/or
a list of disabled packages (minemacs-modules and
minemacs-disabled-packages can be set in this file). So if you want to
enable a module (ex. me-prog) but you need to exclude a particular
package (ex. ts-movement), you can add the latter to
minemacs-disabled-packages.~/.minemacs.d/config.el file contains the user configuration and
customization, you can think of it as your init.el, which gets loaded at
the end of MinEmacs’ init.el!This repository contains skeleton files for modules.el and
config.el (under skel/). We highly recommend
following the same structure as in the skeleton files, specially the use of
with-eval-after-load and use-package instead of using require directly
(require loads the packages immediately, which increases the startup time of
Emacs).
In my workflow, I use mainly the same configuration files across all my machines (which, following the tradition, are shared in my dotfiles repository). However, I have some machine-specific (local) configurations that contain some private and machine-specific configurations. For example, I use them to overwrite the email address on my workstation, to setup my Email accounts, to setup Forge and Jira integration in my workstation, and so on.
For this purpose, MinEmacs will also check for files in
~/.minemacs.d/local/{early-config,init-tweaks,modules,config}.el and load
them, after the ~/.minemacs.d/{early-config,init-tweaks,modules,config}.el if
they exists.
MinEmacs provides also some advanced customization files, these files can be used to tweak MinEmacs’ behavior, add some early initialization code, make MinEmacs runnable on older Emacs versions, etc.
~/.minemacs.d/early-config.el file is loaded at the end of MinEmacs’
early-init.el. You can use it to set up some early stuff like tweaking the
UI, overwrite the variables set by MinEmacs in ~/.emacs.d/early-init.el,
and so on.~/.minemacs.d/init-tweaks.el file is loaded at an early stage of the
init.el file. You can use it to do some useful stuff before
MinEmacs starts to customize packages and load modules. See the comments in
init.el for more information.You can customize MinEmacs’ behavior via some environment variables.
MINEMACS_DIR or MINEMACSDIR: Path for MinEmacs user configuration
directory, if not set, ~/.minemacs.d/ is used.MINEMACS_ORG_DIR: Path for the default directory to use for org-directory.MINEMACS_MSG_LEVEL: Change message log level, from 1 (only errors) to 4 (all
messages).MINEMACS_VERBOSE: Be more verbose (useful for debugging).MINEMACS_DEBUG: Enable debugging at startup (and be verbose).MINEMACS_NOT_LAZY: Load lazy packages immediately after loading Emacs.MINEMACS_ALWAYS_DEMAND: Load all packages immediately (this works by setting
use-package-always-demand to t and use-package-always-defer to nil (by
default, MinEmacs sets use-package to always defer, unless explicit
:demand is added).MINEMACS_BUILTIN_ONLY: Load only built-in packages, no need to install any
external package (package.el won’t be used to install packages). This can be
useful when you want to use MinEmacs on a machine with limited internet
access.MINEMACS_DISABLED_PACKAGES or MINEMACS_DISABLED_PKGS: space-separated list
of packages to disable.MINEMACS_IGNORE_USER_CONFIG: space-separated values, used to disables
loading ~/.minemacs.d/<file>.el user configuration files. Accepted values
for <file> are: early-config, init-tweaks, modules, config,
local/early-config, local/init-tweaks, local/modules and local/config.
Use all to disable all user configuration files.MINEMACS_LOAD_ALL_MODULES: Load all modules (without taking
~/.minemacs.d/modules.el into account).MINEMACS_BENCHMARK: Run a benchmark at initialization of Emacs (using
benchmark-init.el) and display
the results after startup (including lazy packages). If you set the value of
this variable to lazy, the benchmark will be run at the end of
minemacs-lazy-hook, otherwise, it will be run at the end of
minemacs-after-startup-hook.MINEMACS_NO_PROXIES: Set if you have minemacs-proxies setup in your
early-config.el but you want to start Emacs without passing by these proxies
(useful if you use some proxies for workplace but you want Emacs to start
without passing by them to be able to download packages).MinEmacs uses use-package with the built-in package.el (and package-vc) to
install the packages declared in its modules:
:ensure t (or :ensure PKG) installs a package from the package archives
(MELPA, GNU ELPA and NonGNU ELPA, see package-archives).:vc (:url "https://...") installs a package directly from its Git
repository.Package activation is declarative, like with straight: only the packages
declared with :ensure or :vc (in the enabled modules and in your
configuration) and their dependencies are activated. A package removed from the
configuration isn’t loaded anymore after restarting Emacs, even if it is still
installed. A package installed with M-x package-install or M-x
package-vc-install is only available in the current session.
The exception is the installed newer versions of built-in packages (ex.
transient or compat), which are activated at startup. To get back to the
built-in version, delete the package with M-x package-delete.
Packages are installed in ~/.emacs.d/local/elpa/. The installed revisions are
recorded in the lockfile local/packages/versions.el:
M-x minemacs-packages-bump-async (or make bump) updates all packages to
their latest versions and regenerates the lockfile.
minemacs-packages-sync-sources is automatically called at the beginning.M-x minemacs-packages-sync-sources reinstalls the packages declared in the
current session that aren’t installed from their declared source (ex. a
package changed from :ensure to :vc).M-x minemacs-packages-upgrade (or make upgrade) restores the packages
installed from Git to the revisions recorded in the lockfile. As the package
archives only serve the latest version of each package, packages installed
from the archives are only upgraded when they are older than the locked
version.M-x minemacs-packages-freeze (or make freeze) saves the current versions
to the lockfile.M-x minemacs-packages-prune deletes the installed packages that are not used
anymore.M-x minemacs-packages-recompile (or make recompile) byte-compiles all the
installed packages, including the ones that aren’t activated.For more information about customization variables, functions and commands defined by MinEmacs, you can refer to the documentation generated from the source code.
If you experienced an issue with MinEmacs, you can take a look at the FAQ, consult the discussions, check open issues or open a new one.