On branch: master Commits:68db6fc064...2d78ea57cf
- [b7c26e90](b7c26e9036
) Backport commit 8b07994e2 from Emacs - [36622362](36622362d1
) org.el (org-do-latex-and-related): Fix duplicate 'latex faces - [f1077367](f10773675d
) Backport commit 331ddd803 from Emacs - [287af207](287af207fe
) lisp/org.el: Bump version header to 9.4.5 - [05277f5c](05277f5caf
) lisp/org.el: Fix previous merge commit - [a17243f9](a17243f9a5
) org-manual.org: Fix typo in org-protocol capture example - [4de2fff8](4de2fff87d
) Add quotes to emacsclient arguments in examples - [7c23fc7e](7c23fc7efa
) ob-ocaml: Update stale tuareg-mode link in commentary - [6a50e41e](6a50e41ea5
) org-agenda.el: Rename org-agenda-format-item parameters - [d017cdb0](d017cdb0ae
) NEWS: Group and move up electric-indent/adapt-indentation entries - [1c0ce74a](1c0ce74a1f
) NEWS: Remove quote from in front of headline-data symbol - [3089fcd6](3089fcd690
) Remove redundant #' around lambdas - [f7e0e17e](f7e0e17e82
) ox-texinfo: Fix colons removal in menu entries - [bcfe6f98](bcfe6f985c
) ox-latex: convert verbatim text in headings to texttt - [702e782c](702e782cb6
) org.el: Mark org-link-descriptive as buffer-local - [75756789](7575678959
) ox-latex: Fix texttt usage in headlines - [e1b8d1d2](e1b8d1d2b4
) org-colview: Do not choke when updating a special property
nix-doom-emacs
Status | |
---|---|
Build on master |
|
Build on develop |
|
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/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")
'';
}
./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:rycee/home-manager";
nix-doom-emacs.url = "github:vlaci/nix-doom-emacs";
};
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 ];
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