### Changes for doom-emacs On branch: master Commits:33c5f3721a...35a89bdfa6
- [b0761403](b07614037f
) fix(mu4e): support mu 1.8 - [7f730cb5](7f730cb5cb
) bump: :lang scala - [467761e7](467761e7e5
) bump: :completion vertico - [acd7db14](acd7db1410
) feat(dart): add & improve keybinds for flutter - [b636d9e7](b636d9e793
) fix: strip './' from projectile file list produced by fd - [d15022d4](d15022d4fe
) fix(pass): enable evil-collection bindings - [3b3857d5](3b3857d57a
) fix(python): conflicting pyimport-remove-unused keybind - [da628a78](da628a7870
) docs(tree-sitter): remove mention of keys mode - [53452f43](53452f43b7
) bump: :tools tree-sitter - [e478f597](e478f597cb
) bump: :lang lua - [5bbc299b](5bbc299b8b
) docs(sh): add doctor check for shfmt - [b5fd085a](b5fd085af0
) tweak(default): consult-flymake in a branch of +default-diagnostics - [e48dd85e](e48dd85e56
) tweak(notmuch): bury update buffer instead of killing it - [9a3fab95](9a3fab9572
) bump: :os tty - [e7d56f2c](e7d56f2ce7
) feat(markdown): add toggle keybinds under <localleader> t - [043d32fe](043d32fefd
) fix(literate): load doom core when tangling - [8308d68b](8308d68b61
) fix: support :source and :inherit in package! :recipe - [87b165fd](87b165fdfb
) perf(cli): gc-cons-percentage = 1.0 - [7373e97f](7373e97ff6
) feat(default): bind 'SPC b I' to open ibuffer for workspace - [40ca1a79](40ca1a799f
) fix(vertico): +vertico/consult-fd - [a5cc803a](a5cc803ad4
) docs(tree-sitter): improve README formatting - [924d7844](924d78443a
) tweak(snippets): yas-verbosity = 2 - [efb46c77](efb46c77be
) refactor(pdf): better epdfinfo check on pdf-view-mode - [824402aa](824402aaee
) bump: :tools pdf - [1448b8ee](1448b8eee1
) refactor(cli): remove redundant ensure-list call - [26b8383c](26b8383cbd
) feat(nix): add +lsp - [a70e634e](a70e634ebd
) refactor(:lang): move tree-sitter init - [9cb4c8b6](9cb4c8b637
) fix(:lang): ensure lsp! is always appended to hooks - [dd83c455](dd83c455ba
) fix(org): update +org--more-startup-folded-options-a - [5108ffc4](5108ffc44d
) feat: backport --init-directory for 27/28 users - [5b6b204b](5b6b204bcb
) feat: allow Doom be used as a config bootloader - [fbc5fd7f](fbc5fd7f8a
) nit: revise comments in early-init.el - [2680573e](2680573eda
) docs: add profiles/README.org - [bd989d16](bd989d16f0
) tweak: prep gitignore for v3 - [8f968505](8f96850543
) nit: add dummy safe-mode profile - [4c4a880f](4c4a880f6b
) docs: fix blockquote in profiles/README.org - [1ecb5c7b](1ecb5c7b9b
) fix: fall back to $EMACSDIR/profiles/* - [5af38fb0](5af38fb08e
) feat: make bin/doom profile aware - [df8caf28](df8caf2867
) nit(cli): revise header commentary - [48e3603d](48e3603dfe
) fix: envvars in profiles.el not being set - [44f16974](44f169740e
) tweak: more debug output at startup - [22eace62](22eace62d0
) fix: doom-local-dir for profiles - [49d3f1e9](49d3f1e96c
) feat(cli): accept omit list on (exit! :restart) - [314463bd](314463bd49
) fix(cli): ignored --{profile,doomdir,emacsdir,debug} - [743b740e](743b740e79
) fix(cli): verbose output in debug mode - [12b52909](12b52909e3
) fix(cli): env setter for profile loader - [7eeec53c](7eeec53c30
) fix(cli): improve end-of-file error in profiles file - [20d54400](20d5440023
) fix(cli): don't persist options/args in context - [fe2ea9f4](fe2ea9f443
) fix(cli): redundant lines in stderr logs - [a22cd758](a22cd75839
) fix(cli): log benchmarks & postscripts to stderr - [35a89bdf](35a89bdfa6
) fix(lib): missing bin/doom error on doom/reload
nix-doom-emacs
Status | |
---|---|
Build on master |
|
Dependency updater |
Nix expression to install and configure doom-emacs.
The expression builds a doom-emacs
distribution with dependencies
pre-installed based on an existing ~/.doom.d
directory.
It is not a fully fledged experience as some dependencies are not installed and
some may not be fully compatible as the version available in NixOS or
emacs-overlay may not be
compatible with the doom-emacs
requirements.
Getting started
Using home-manager:
{ pkgs, ... }:
let
doom-emacs = pkgs.callPackage (builtins.fetchTarball {
url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
}) {
doomPrivateDir = ./doom.d; # Directory containing your config.el init.el
# and packages.el files
};
in {
home.packages = [ doom-emacs ];
}
./doom.d
should contain the following three files: config.el
, init.el
and
packages.el
. If you don't already have an existing doom-emacs
configuration,
you can use the contents of test/doom.d
as a template.
Using flake.nix
:
{
inputs = {
home-manager.url = "github:nix-community/home-manager";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = {
self,
nixpkgs,
lib,
home-manager,
nix-doom-emacs,
...
}: {
nixosConfigurations.exampleHost = lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
({
home-manager.users.exampleUser = lib.mkMerge [
nix-doom-emacs.hmModule
{ ... }: {
programs.doom-emacs = {
enable = true;
doomPrivateDir = ./doom.d;
};
}
];
})
];
};
};
}
Under the hood
This expression leverages nix-straight.el under the hood for installing dependencies. The restrictions of that package apply here too.
Usage
instead of running emacs.d/bin/doom, once you have update your config files (packages.el, init.el, config.el), rebuild doom-emacs with nix. If you are using home-manager, simply run home-manager switch
Troubleshooting
On macOS on a fresh install, you might run into the error Too many files open
. running ulimit -S -n 2048
will only work for the duration of your shell and will fix the error
Installing emacs packages
In the initial packages.el instructions for how to install packages can be
found. However some packages might require a particular software dependency to
be installed. Trying to install those would give you an error of the type:
Searching for program: No such file or directory, git
(Missing git dependency)
Here is how you would go installing
magit-delta for example (which
requires git).
Under the line:
doomPrivateDir = ./doom.d;
in your configuration, you would add the following:
{
emacsPackagesOverlay = self: super: {
magit-delta = super.magit-delta.overrideAttrs (esuper: {
buildInputs = esuper.buildInputs ++ [ pkgs.git ];
});
};
}
To make the git dependency available. trying to rebuild doom-emacs with
home-manager switch
should work correctly now.
Using the daemon
To use the daemon, simply enable the emacs service (with NixOS
, home-manager
or nix-darwin
) and use the doom emacs package. doom-emacs
will need to be
referenced at the top of your config file.
{
services.emacs = {
enable = true;
package = doom-emacs; # use programs.emacs.package instead if using home-manager
};
}
to connect to the daemon you can now run emacsclient -c