## Changelog for doom-emacs: Commits: [hlissner/doom-emacs@f7293fb6...110d70bd](f7293fb67e...110d70bdff
) * [`2bf73ee3`](2bf73ee34c
) [:lang cc] Add LSP configuration snippets * [`ea16bb66`](ea16bb66c3
) Fix behaviour without aspell * [`120530e3`](120530e353
) Bump :lang lua * [`62c1e5b6`](62c1e5b6c9
) Bump :checkers syntax * [`3265c258`](3265c25821
) Bump :lang erlang * [`a31dced7`](a31dced7bc
) Requested changes -- move defvar to preface * [`da54fa98`](da54fa98ce
) Fix hlissner/doom-emacs#4271: prevent file-templates in org-capture * [`ecca37b0`](ecca37b07b
) Bump :tools direnv * [`f40a2e1e`](f40a2e1ed7
) lang/org: apply +org--fix-async-export-a to org-export-as * [`472ec524`](472ec52481
) Use global-hl-line-mode instead of hl-line * [`969e6486`](969e6486f6
) Apply customized faces sooner * [`a14fb64c`](a14fb64c0c
) Fix hlissner/doom-emacs#4268: off-by-one region on double-click * [`ed1996e6`](ed1996e6f9
) Reformat map! docstring * [`523ced6e`](523ced6e9a
) Fix hlissner/doom-emacs#4127: arrayp error on some snippets via +snippets/edit * [`911d0a27`](911d0a2732
) Remove racket repl unicode input hook * [`aa02dc14`](aa02dc14a4
) Bump :tools debugger lsp * [`befb2bae`](befb2baeda
) Introduce +doom-dashboard-ascii-banner-fn setting * [`d6ef43a5`](d6ef43a563
) C-s = company-filter-candidates in company-active-map * [`196bb040`](196bb04088
) Bootstrap trampolines to prevent doom build hang * [`e9394c7c`](e9394c7c06
) Add with-editor.el to the compilation black-list * [`b6109657`](b61096578a
) Hide tab-bar line in company-box frames * [`44a6c9b2`](44a6c9b2c8
) Fix oversized company-box scrollbars * [`89997198`](8999719852
) window-resize-pixelwise = nil * [`d6b26aac`](d6b26aaca6
) Move .dir-locals.el to root * [`cfcd010c`](cfcd010cd6
) Revert ivy-magic-slash-non-match-action to nil * [`29d8f442`](29d8f44254
) Add comments * [`8ffc9ba4`](8ffc9ba429
) Disable so-long if visual-line-mode is enabled * [`427d3800`](427d38008b
) Overwrite yes-or-no-p instead of advise it * [`51744ce2`](51744ce294
) Fix hlissner/doom-emacs#4180: omit .git from file searches * [`db66b8af`](db66b8af31
) Omit .git from projectile-find-file & ocunsel-file-jump * [`c6b80a59`](c6b80a598e
) Un-ignore .gitignore & .github * [`6f3f4de4`](6f3f4de46d
) Fix hlissner/doom-emacs#4279: runaway duplication in eshell-command-aliases-list * [`5233042f`](5233042f4a
) Add lsp support to cmake-mode * [`315ae162`](315ae16240
) Add lookup-documentation handler for cmake-mode * [`a56f58d4`](a56f58d4ab
) Prevent native compilation for emacs-jupyter * [`db2ad082`](db2ad0828c
) Adding doc update for cmake-language-server * [`89249374`](892493741f
) term/eshell: add syntax highlighting * [`03fe396e`](03fe396eea
) Move +default/{find-in,browse}-emacsd to core lib * [`86c2f052`](86c2f05252
) Refactor doom-dashboard-draw-ascii-banner-fn * [`00b370fd`](00b370fdc6
) ui/workspaces: persp-local winner-mode history * [`e1c9145a`](e1c9145a5d
) Run after-setting-font-hook after fontset config
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