github-actions[bot] f25dbd621e niv doom-emacs: update 110d70bd -> d88e0795
## Changelog for doom-emacs:
Commits: [hlissner/doom-emacs@110d70bd...d88e0795](110d70bdff...d88e0795b6)

* [`41b237e0`](41b237e06e) Add `ivy-avy`
* [`95ef7f33`](95ef7f33b1) Add exunit mode modeled after rspec-mode
* [`2c9e1c83`](2c9e1c83ed) Add link to exunit
* [`9d46c212`](9d46c212af) Updates for formatting and init hook
* [`3de0d407`](3de0d4074d) Update modules/lang/elixir/config.el
* [`80992a0c`](80992a0cae) Update config.el
* [`42cb866f`](42cb866f50) Bump :editor god
* [`53f8e8b2`](53f8e8b249) Enable god-mode support for which-key if required
* [`c3001f77`](c3001f77aa) core-lib: Add docstring for add-hook-trigger!
* [`db7926a1`](db7926a1bd) Do not eval skk-mode-exit if ddskk not loaded
* [`1765dc82`](1765dc8299) Correct ascii banner alignment
* [`0d6c32ff`](0d6c32ff25) Fix hlissner/doom-emacs#4288: no which-key label for TeX-view
* [`4dab595a`](4dab595ad3) Minor refactors & comment revision
* [`03c6a352`](03c6a352bf) Ensure site subdirs.el are loaded
* [`db16e5c0`](db16e5c03e) Fix error if autoloads file is missing at startup
* [`23e0dc48`](23e0dc48e6) Update org-msg variable
* [`a799a58b`](a799a58b98) Bump :tools debugger lsp
* [`8a908627`](8a90862777) Remove +magit/clone
* [`16344d0f`](16344d0f5e) Fix hlissner/doom-emacs#4286: incorrect cursor color
* [`c83e5e75`](c83e5e75e2) Bump :lang latex
* [`18db5e20`](18db5e2089) Add keybindings for roam tagging
* [`a4443605`](a44436057a) remove company-org-roam from lang/org/README.org
* [`d5402e0d`](d5402e0d5f) :tools/rgb minor README fixes
* [`5eab7d44`](5eab7d4414) Bump straight.el
* [`d3e08c5d`](d3e08c5d0b) Update for the latest native-compile-async API
* [`8914b7b8`](8914b7b8ab) Fix hlissner/doom-emacs#4299: refactor retina support for pdfs
* [`ee6b7c0e`](ee6b7c0e81) tools/pdf: minor reformatting
* [`65b56a56`](65b56a5671) Bump :term vterm
* [`90f16eaa`](90f16eaa76) Fix hlissner/doom-emacs#4317: wrong-type-arg: number-or-marker-p many
* [`6dc84f16`](6dc84f1671) Remove backwards compatibility for native-comp
* [`e4563e9b`](e4563e9b02) Fix void-symbol: straight-vc-git-default-branch error
* [`f0dbb1ff`](f0dbb1ffd2) Bump :tools biblio
* [`c1bdd63d`](c1bdd63dcd) Bump evil-collection
* [`ed93ed99`](ed93ed9907) Bump :config default
* [`6774c0d2`](6774c0d26e) Replace +auto -> +childframe in code example
* [`0f322655`](0f3226558f) tools/pdf: add saveplace-pdf-view package
* [`7f99eb7a`](7f99eb7a48) Refactor +markdown-flyspell-word-p predicate
* [`a3293e67`](a3293e67d4) Bump :core
* [`742ff562`](742ff5629c) Create different compilation buffers per-project
* [`eaa8d899`](eaa8d8997c) Bump :checkers syntax
* [`6665d2b6`](6665d2b6c2) [:input layout] Follow evil-magit migration
* [`0b78fe3f`](0b78fe3fbb) Improve byte compilation message
* [`49f4461d`](49f4461daa) Elisp `eldoc': fix "Invalid format operation %-"
* [`345327ae`](345327ae8b) Use `max', not `min'
* [`22b4462e`](22b4462e18) Make git-commit-{major-mode,summary-max-length} safe local vars
* [`db6a27c3`](db6a27c37c) native-comp: use all cores instead of half
* [`9e764092`](9e76409238) Bump :tools
* [`cde7a06b`](cde7a06bdf) Bump :ui
* [`0285dd5e`](0285dd5e0e) git-commit-major-mode = git-commit-elisp-text-mode hlissner/doom-emacs#4335
* [`b49c40bb`](b49c40bbb3) Minor refactors & comment revision
* [`b91a1b3e`](b91a1b3e7b) Extract CPU counting to doom-num-cpus function
* [`c0e905c0`](c0e905c044) Rename internal variable: doom-num-cpus -> doom--num-cpus
* [`77924c8f`](77924c8feb) Remove tab-prefix-map fix
* [`2828281a`](2828281af7) Fix blacklisted evil-collection-magit keybinds
* [`87d84579`](87d8457927) magit: fix mismatched paren in parent
* [`bf50149e`](bf50149ee3) Fix doom upgrade
* [`12b733b3`](12b733b33e) Unhardcode upstream repo in diff url
* [`b426e21e`](b426e21ef1) Refactor doom-num-cpus
* [`cd88f652`](cd88f6528e) Refactor MODE-local-var-hook trigger
* [`7038c2e8`](7038c2e800) Fix hlissner/doom-emacs#3244: rewrite how pdf-tools builds epdfinfo
* [`7b11f67c`](7b11f67c76) counsel-bookmark use filename only if available
* [`312ae37d`](312ae37d91) grammar: macports compatibility
* [`c517be8e`](c517be8e69) Advise locate-user-emacs-file to use doom-etc-dir
* [`affd076d`](affd076d53) Minor refactors & reformatting
* [`be923535`](be923535fa) upgrade.el: force fetch
* [`9350beb5`](9350beb544) Upgrade: remove leftover ref
* [`b7f6532e`](b7f6532e4f) Fix startup hooks not running in vanilla sandbox
* [`b5e94805`](b5e948054c) Refactor & reformat core.el
* [`a9f57f14`](a9f57f14ac) Fix hlissner/doom-emacs#4355: trigger eldoc after company completions
* [`d88e0795`](d88e0795b6) Allow eldoc after doom/escape or evil state change
2020-12-04 21:26:49 +01:00
2020-09-27 12:37:17 +02:00
2020-11-01 09:51:49 +01:00
2019-10-23 13:25:43 +02:00
2020-11-08 14:30:36 +01:00

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

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