## Changelog for doom-emacs: Commits: [hlissner/doom-emacs@57ef63d6...03b0a834](57ef63d6ba...03b0a834dd
) * [`ed94779b`](ed94779bff
) fix: add explanation for php document * [`c356d75d`](c356d75d52
) fix: add info for intelephense * [`9baf656f`](9baf656ff9
) Enable poetry-tracking-mode * [`20ecefb0`](20ecefb0f8
) Escape skk-mode on doom/escape * [`bb29a845`](bb29a84521
) fix: fix grammar misuse * [`f02879dd`](f02879dd04
) Add ffap & bug-reference support to +lookup/file * [`a25ad3fa`](a25ad3fa7c
) Restore line numbers in artist-mode hlissner/doom-emacs#2742 * [`6a82eede`](6a82eedeea
) Respect Xresources * [`7da9628d`](7da9628d96
) app/irc: proc +irc-defer-notifications later * [`ccfa2855`](ccfa2855a1
) Map Tex-view to localleader-v * [`ecd7e21a`](ecd7e21a52
) Associate .eco files with web-mode * [`1aa75456`](1aa75456e8
) Minor refactor * [`17b6129d`](17b6129d34
) Minor refactor * [`55b18b70`](55b18b70c3
) delete extra paren in :lang latex * [`57e9b89b`](57e9b89b80
) Suppress format-all-mode error when no formatter is available * [`7ec62359`](7ec623593e
) Fix magit in remote repos * [`7d603185`](7d603185e1
) Filter dead buffers from persp-mode workspaces * [`3abd26aa`](3abd26aaff
) Remove smartparens keys on vanilla C/M arrow keys * [`91a4311a`](91a4311a17
) Fix hlissner/doom-emacs#4202: svg files opening as text * [`74737dad`](74737dad37
) package!: add :build, :post-build support * [`65be6923`](65be6923e7
) Fix wrong-number-of-args on 'doom install' * [`3e043295`](3e0432959a
) Set user-init-file in sandbox * [`807f00a4`](807f00a470
) Fix hlissner/doom-emacs#4205: void-function (setf persp-buffers) * [`4fc084e7`](4fc084e7bd
) Fix hlissner/doom-emacs#4209: void-function +latex/LaTeX-indent-item * [`0efe786d`](0efe786d99
) Fix hlissner/doom-emacs#4207: eshell-mode backport breaks old keybinds * [`41885c4e`](41885c4e72
) Revert company-idle-delay to package default (0.5) * [`9f261788`](9f261788b9
) Fix hlissner/doom-emacs#4206: hl-line reactivates on exiting visual mode * [`86722ee6`](86722ee67e
) Minor refactors & reformatting * [`be4fe448`](be4fe4484a
) Bump :ui doom * [`dec573c4`](dec573c4e5
) Allow formatter in some "special" buffers * [`50226c45`](50226c45e6
) setq -> setq-default for org directory vars * [`5d5d94d4`](5d5d94d49c
) Bump :editor snippets * [`304424d8`](304424d844
) Fix hlissner/doom-emacs#4212: slow file checks over network shares * [`0446c2a8`](0446c2a853
) vterm-max-scrollback = 5000 * [`611fdade`](611fdade09
) Add doom/copy-buffer-contents command * [`03b0a834`](03b0a834dd
) Fix hlissner/doom-emacs#4214: support setting doom-theme to 'default
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