github-actions[bot] cc212b2805 flake.lock: Updating 'doom-emacs (hlissner/doom-emacs)' - 46dedb3e -> ce65645f
### Changes for doom-emacs

On branch: develop
Commits: 46dedb3e33...ce65645fb8

- [763d0b67](763d0b670c) Change envvar file format
- [2b3dd9df](2b3dd9df4b) Fix [hlissner/doom-emacs⁠#4815](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4815): respect git-gutter:disabled-modes
- [ac46ae7e](ac46ae7eb3) Associate *.cjs (commonjs module) with js2-mode
- [a2ccae91](a2ccae917e) doom compile: add warning
- [5e786483](5e7864838a) Ignore unsafe local variables, but log them
- [aafed6d8](aafed6d8a0) lang/org: call push-button on buttons in org-mode
- [4bab5a94](4bab5a948a) Omit after/before-string overlay props w/ ox-clip
- [18e1795a](18e1795a98) org-confirm-babel-evaluate = nil while tangling
- [1b4b0773](1b4b077385) Refactor ox-clip advice to omit before/after props
- [ba0ddb71](ba0ddb71ee) Reload pdfs when pdf-view-midnight-colors changes
- [5b3f52f5](5b3f52f5fb) Fix missing doom.error.log and silent straight errors
- [64f791ed](64f791eda2) Bind <leader> s B -> swiper-all
- [c2659d1a](c2659d1ad9) lang/ledger: enable outline-minor-mode by default
- [0df5da98](0df5da9882) lang/ledger: add rudimentary imenu support
- [58c8f6fa](58c8f6fa5b) lang/ledger: add popup rule for *Ledger ...* buffers
- [5defe3ed](5defe3ed88) lang/ledger: bind SPC m e -> ledger-post-edit-amount
- [235db177](235db17742) lang/ledger: refactor & show report keys in header line
- [83e0451c](83e0451cba) Fix org-capture popup rules for partials & non-org files
- [b859727f](b859727f7a) Never show hl-line in dashboard
- [cd33874e](cd33874e41) lang/clojure: don't autokill cider repl buffers
- [af90333b](af90333bcd) Bump *
- [e4c4e3f4](e4c4e3f48c) Move lsp-intelephense-storage-path to doom-etc-dir
- [ce65645f](ce65645fb8) Minor refactors & comment revision
2021-04-10 00:27:42 +02:00
2021-01-23 17:15:48 +01:00
2021-01-23 17:15:48 +01:00
2019-10-23 13:25:43 +02:00
2021-03-12 10:53:18 +01:00
2021-01-23 17:50:22 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Build on develop Build Status on develop
Dependency updater Dependency Updater Status

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

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