github-actions[bot] 57e0025e9c flake.lock: Updating 'doom-emacs (doomemacs/doomemacs)' - c44bc81a -> 0172b180
### Changes for doom-emacs

On branch: master
Commits: c44bc81a05...0172b180a9

- [98b8f01d](98b8f01de3) fix(lib): vestigial call to missing cat function
- [995b4037](995b40378d) fix: remove use-package-font-lock-keywords reference
- [efa3e979](efa3e9791f) fix: remove inhibit-redisplay hack
- [65c86ea3](65c86ea3ff) feat(lib): backport with-environment-variables from 28.1
- [5ebc2528](5ebc2528d8) perf(lib): use symbol plist for fn! lookup table
- [edaa887b](edaa887bd9) refactor(lib): add + use defbackport! macro
- [2b01166d](2b01166d1d) feat(lib): backport with-memoization from 29
- [338f59c4](338f59c456) feat(lib): backport bol & eol from 29
- [71469d80](71469d8056) feat: add nongnu-elpa source for straight
- [1dac4ac3](1dac4ac37b) refactor: move file-name-handler-alist hack to early-init
- [b7f84bdd](b7f84bdd01) perf: defer incremental loading for nativecomp users
- [3853dff5](3853dff5e1) tweak: disable ahead-of-time native compilation
- [c05e6153](c05e61536e) refactor: make early-init.el Doom's universal bootstrapper
- [6cf0e04d](6cf0e04de0) refactor: move doom-first-*-hook to doom-start
- [b68c93d9](b68c93d924) refactor: move doom-*-reload-hook to lib/config.el
- [1a639b73](1a639b7341) feat: add auto-mode-alist entries for future doom dotfiles
- [7e653292](7e65329289) refactor: move gcmh config to doom-start
- [42ac62df](42ac62df74) fix: defer projectile's project cleanup
- [1f29b07f](1f29b07f39) docs: restore getting-started guide & module index
- [2b07fd1d](2b07fd1dd8) bump: :core
- [89506983](89506983fe) refactor: early-init comments, loaders, & recursion guards
- [cadc778a](cadc778a03) perf(lib): optimize doom-path
- [f66d9e1f](f66d9e1f0e) feat(lib): only return dirs if doom-glob SEGMENTS end with /
- [e986d6be](e986d6bef9) refactor(lib): deprecate doom-dir
- [8d4b6b30](8d4b6b3028) feat(lib): add doom-file-{read,write} functions
- [83f18402](83f18402e3) feat(lib): add with-file! & with-file-contents! macros
- [0100b084](0100b08402) refactor(cli): handle more errors & POSIX-ify doomscript
- [4009509d](4009509db5) feat(lib): add eval-when-compile! macro
- [aef14f07](aef14f078d) feat(cli): add --benchmark switch
- [c370cb17](c370cb1784) fix(cli): duplicate log files
- [8971ee36](8971ee36e5) refactor(cli): use new API to write temp files
- [6dfed1ff](6dfed1ff47) refactor(cli): simplify struct definitions
- [948f9461](948f9461a7) refactor(cli): merge doom-cli-lib into doom-cli
- [2e6a69f5](2e6a69f501) refactor: improve Emacs/Doom version checks
- [2383e924](2383e924c0) refactor: move essential defs + init to top of core
- [085b5563](085b5563fc) nit(cli): tidy comments & correct grammar in error
- [cee89a5d](cee89a5d3f) refactor!(cli): remove 'doom {refresh,re}'
- [3cfcfc50](3cfcfc5055) refactor(lib): use with-memoization
- [9b497319](9b4973198b) refactor(lib): use new file API
- [b93f3985](b93f398568) refactor(lib): enforce namespace for helpers
- [2396262c](2396262cfa) nit: revise commentary in early-init.el
- [a0fe1992](a0fe199237) fix(cli): void-variable doom-dir on 'doom doctor'
- [48369fb6](48369fb654) fix(lib): add native-comp vars to known debug vars
- [3ae8c520](3ae8c520d5) nit(vc-gutter): reformat annotated comments
- [0a51fdff](0a51fdff53) refactor(lib): move doom-log to doom-lib
- [2b1f6031](2b1f6031b2) refactor(lib): rely less on global state for defaults
- [878781e2](878781e2e4) refactor(cli): remove unneeded (require 'doom)
- [c6cfee63](c6cfee63b4) fix(dart): enable rainbow-delimiters in dart-mode
- [3e98f11d](3e98f11d9b) fix(csharp): add dep pkg for sln-mode
- [1d942b4a](1d942b4ab6) fix(lib): doom/version use canonical filenames
- [829998e7](829998e70b) docs(pdf): fix instructions to build epdfinfo
- [3694969d](3694969dd4) nit(vertico): typo in docstring
- [ba859fcf](ba859fcfc0) nit(vertico): add missing function docstring
- [f8bd14eb](f8bd14ebc3) bump: ts-fold
- [d8f87ada](d8f87ada96) fix(magit): only install forge if asked
- [ea84212d](ea84212d0a) fix(magit): void-function (:files) error
- [20c50755](20c50755e8) fix(magit): end-of-file error
- [63b0ebed](63b0ebeda7) refactor!(rust): remove racer and default to +lsp
- [a1c9d40e](a1c9d40ee8) docs(rust): de-emphasize rls
- [5fb96f28](5fb96f2886) fix(scheme): restore repl-per-project for scheme
- [71e01906](71e0190618) bump: :lang scheme
- [e87fd8ac](e87fd8ac13) fix: validate fd --version output
- [4efdf51c](4efdf51ca5) release(modules): 22.09.0-dev
- [9e3d9927](9e3d99277e) docs(everywhere): update CLI command
- [8594c1a0](8594c1a0c4) fix(cli): failure to autoload 'doom refresh' error
- [2cd8f85b](2cd8f85bac) fix(debugger): fix dap-ui conditional loading
- [18887163](18887163f9) tweak(cli): add lisp/cli to doom-cli-load-path by default
- [ceae1547](ceae154751) fix(cli): reading dir perms on a non-existent dir
- [a0fc7bad](a0fc7bad5a) fix(cli): create doom directories early
- [0172b180](0172b180a9) refactor(cli): remove superfluous emacs switches
2022-09-14 19:36:39 +01:00
2022-07-10 19:48:51 +01:00
2022-09-03 21:45:31 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Dependency updater Dependency Updater Status
Matrix Chat Matrix Chat

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/nix-community/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 ];
}

./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:nix-community/home-manager";
    nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
  };

  outputs = {
    self,
    nixpkgs,
    lib,
    home-manager,
    nix-doom-emacs,
    ...
  }: {
    nixosConfigurations.exampleHost = lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        home-manager.nixosModules.home-manager
        ({
          home-manager.users.exampleUser = lib.mkMerge [
            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; # Not needed if you're using the Home-Manager module instead
  };
}

to connect to the daemon you can now run emacsclient -c

Description
doom-emacs packaged for Nix [maintainers=@ckiee,@thiagokokada]
Readme MIT 3.3 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%