### Changes for doom-emacs On branch: develop Commits:d62c82ddbe...768160b001
- [aecd60cf](aecd60cfab
) Add shortcuts and descriptions for GDScript module - [61a6be26](61a6be264e
) Associate *.es6 files with js2-mode - [d0b6cef8](d0b6cef8a5
) Bump minimum supported version to Emacs 26.3 - [95a60373](95a603733a
) Add +lsp-prompt-to-install-server option - [628f0a93](628f0a930f
) Force straight to byte-compile packages in same session - [de1f2a8f](de1f2a8f96
) Add doom-plist-{keys,values} functions - [c7458e9e](c7458e9e2e
) Make flyspell the default spellcheck backend - [9446a8f4](9446a8f411
) Move byte-compile fix to core-packages - [45b68e46](45b68e46ee
) Bump :tools lsp debugger - [16a495c9](16a495c97d
) Fix [hlissner/doom-emacs#4548](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4548): global TAB overwritten by evil keybind - [9c7508c1](9c7508c181
) Add ielm-mode to lipsy module hooks - [b1880372](b1880372af
) [feature] Better CIDER debugging - [cf523eb4](cf523eb4dd
) Enabling user config override for org-id-locations-file - [74613c25](74613c25e2
) New module, :app everywhere - [ba02790b](ba02790ba0
) Enable `ivy-rich-project-root-cache-mode`. - [426c50d6](426c50d61b
) Bump :app :config - [d8581268](d858126894
) Bump :lang common-lisp - [e08c5f53](e08c5f537e
) Fix [hlissner/doom-emacs#4623](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4623): tangle to config.el by default - [81109928](8110992829
) s/doom-partial/apply-partially - [953f9246](953f9246df
) Fix RET/TAB in gist-list-menu-mode - [bf5f3c56](bf5f3c5643
) Fix latex item indent ignore `LaTeX item indent` ([hlissner/doom-emacs#4516](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4516)) - [510bc7b5](510bc7b5b4
) Revert "Don't auto-create directory when opening files" - [1a7536cb](1a7536cbd1
) Extend & compact doom/info - [76636d4a](76636d4a98
) Refactor cmds!! - [7e9911f6](7e9911f642
) Bump :core - [768160b0](768160b001
) Don't reload repo buffer modes after closing magit
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