## Changelog for doom-emacs: Commits: [hlissner/doom-emacs@03b0a834...f7293fb6](03b0a834dd...f7293fb67e
) * [`848e117e`](848e117e24
) Add vimish-fold binds when evil is off * [`3afc8166`](3afc81662a
) Add documentation for the fold module * [`7eaf402c`](7eaf402c0b
) Lazy load vimish-fold * [`250b7d1d`](250b7d1d8b
) Move keybinds to +emacs-bindings * [`a88d2958`](a88d29580d
) Update documentation with new keybinds * [`d50b1528`](d50b1528b8
) Remove unnecessary use-package statement * [`4e7ce478`](4e7ce47825
) Demote overly aggressive completion styles * [`11ff294f`](11ff294f7d
) Add detection for projects that are ansible roles * [`d20590b8`](d20590b8d6
) Remove eshell obsolete variable * [`68b15945`](68b1594553
) Fix hlissner/doom-emacs#4220: void-function org-clocking-p * [`ccda9ef6`](ccda9ef6bb
) Fix Issue hlissner/doom-emacs#4212; Use Back-Slash for Win FileShares (hlissner/doom-emacs#4218) * [`7205b727`](7205b727a7
) Bump :ui doom * [`03fa1d86`](03fa1d8697
) Bump :ui doom * [`92c9127b`](92c9127b86
) Bump :core * [`454eef59`](454eef591a
) Created PR to backport emacs-lisp org-babel evaluation to manage the UI * [`b96b6ed6`](b96b6ed64e
) Fix /* and /** expansion in various languages * [`5c06edd9`](5c06edd90a
) lang/web: fix comments not joining/filling correctly * [`5ccbc468`](5ccbc468ad
) lang/web: fix fill-prefix on continued comments * [`7d3a4156`](7d3a41567d
) lang/lua: add +fennel * [`91111822`](911118227c
) lang/org: refactor org recipe * [`50186370`](5018637091
) ui/doom-dashboard: center bottom line of banner * [`423dbe09`](423dbe0992
) Bump :lang org * [`5b713b6c`](5b713b6cd0
) Bump :lang lua * [`45179fbf`](45179fbf59
) Mention current frame type in doom/info * [`2c663ea5`](2c663ea5d4
) Mention current theme and font in doom/info * [`d45155ae`](d45155aec8
) tools/direnv: only run direnv once per buffer * [`3253f7c8`](3253f7c86a
) Bump :editor evil * [`a68b49a9`](a68b49a98e
) Append evil cursor color init hooks * [`3bdb9ad6`](3bdb9ad6c0
) Bump :completion * [`fee4de8b`](fee4de8b24
) Fix hlissner/doom-emacs#4249: doom/reload when bin/doom path has spaces * [`3ecf95ff`](3ecf95ff35
) Fix hlissner/doom-emacs#4249 again * [`338be4f2`](338be4f212
) Fix 404 link. * [`6225cc53`](6225cc5337
) :lang org: (+roam) Replace deprecated functions * [`f3a4c27a`](f3a4c27aac
) Do not overwrite org-roam-db-location * [`f7293fb6`](f7293fb67e
) Fix hlissner/doom-emacs#4208: aborting direnv shouldn't abort find-file
nix-doom-emacs
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 exprerience as some dependenices 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/vlaci/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 ];
home.file.".emacs.d/init.el".text = ''
(load "default.el")
'';
}
Using flake.nix
:
{
inputs = {
home-manager.url = "github:rycee/home-manager";
nix-doom-emacs.url = "github:vlaci/nix-doom-emacs/flake";
};
outputs = {
self,
nixpkgs,
home-manager,
nix-doom-emacs,
...
}: {
nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
{
home-manager.users.exampleUser = { pkgs, ... }: {
imports = [ nix-doom-emacs.hmModule ];
home.doom-emacs = {
enable = true;
doomPrivateDir = ./doom.d;
};
};
}
];
};
};
}
Under the hood
This expression leverages nix-straight.el under the hood for installing depdendencies. 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