github-actions[bot] 9e053bd0d8 flake.lock: Updating 'doom-emacs (hlissner/doom-emacs)' - d52abd37 -> 5d9efe89
On branch: develop
Commits: d52abd37f7...5d9efe89b3

- [a460c1e3](a460c1e364) fix rails command
- [971350bf](971350bf96) remove custom server command
- [87109653](871096533f) Added in Dotnet interface with sharper through module flag
- [41b1a780](41b1a7800a) Updated ordering
- [65dfdd5c](65dfdd5c4a) [4415] remove FIXME comment
- [50131ac9](50131ac995) Add workspace support to rss/elfeed
- [01f54d29](01f54d2950) Add comment for further maintenance
- [5293c460](5293c460db) Refactor doom--help-insert-button
- [b983929e](b983929e82) Refactor doom/help-packages
- [bf185edd](bf185edd91) Prefer readability over a line length < 80
- [065b26e0](065b26e0c5) [:ui layout bepo] Fix notmuch, C-, M- mappings
- [4e531646](4e5316464c) Refactor and add contribution ideas
- [ec747395](ec747395c6) Add support for parinfer-rust-mode ([hlissner/doom-emacs⁠#1](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/1))
- [eae7ca2c](eae7ca2c57) term/eshell: alias cdp to cd-to-project
- [b8b51cee](b8b51cee7b) Simplify after!
- [a79275a4](a79275a476) Bump :lang
- [37e9653c](37e9653ce3) Bump :ui
- [ddd4c032](ddd4c03281) Bump :checkers
- [b681a2e1](b681a2e1b4) Fix +zen/toggle-fullscreen keybind for vanilla users
- [9d12761c](9d12761c39) Reformat for consistency and s/:bind/:general
- [1490c4e5](1490c4e5b2) lang/ruby: remove commit hashes in package links
- [cd083bc0](cd083bc059) tools/lsp: fix +lsp-prompt-to-install-server == 'quiet
- [2ce726b3](2ce726b318) Force async babel blocks to export synchronously
- [3c9b1635](3c9b1635ef) Bump :completion
- [e858e254](e858e254b0) Bump :tools
- [a3f242d4](a3f242d4b6) tools/lsp: only enable sideline icons in 27.x+
- [c049480c](c049480cbd) Fix evil-join filling non-comments poorly
- [03fa2eaf](03fa2eafee) Bind SPC o F to select-frame-by-name
- [1274de3d](1274de3d34) Minor reformatting & refactors across the board
- [6cb5c381](6cb5c381b8) Disable dtrt-indent in pascal-mode
- [e05d804f](e05d804f1f) Restore the old buffer when using `ivy-call'
- [9a776268](9a77626804) Omit all but SVN, Git & Hg from vc-handled-backends
- [bbdea54b](bbdea54b77) app/rss: fix empty rmh-elfeed-org-files
- [9ef11d0e](9ef11d0e31) Auto-truncate compilation buffers
- [7e491ce1](7e491ce1c0) lang/lean: minor reformatting
- [15f7a26b](15f7a26be6) Refactor +vc-gutter-init-maybe-h
- [ed86f996](ed86f99655) lang/org: open org links to remote paths in emacs
- [f2616141](f26161410c) lang/org: add TODO keywords & fontification
- [f1d89bf9](f1d89bf9c2) Bind gI and gA to new +lookup commands
- [ee1c2b4e](ee1c2b4ef6) Use "Search Project [project]" prompt for file search
- [b71b1283](b71b128398) lang/terraform: Set docsets for terraform-mode ([hlissner/doom-emacs⁠#4546](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4546))
- [5d8cbb95](5d8cbb9541) evil-org-mode-map's CSright conflict with Cright
- [5c7b553e](5c7b553e08) Enable lispy-mode during eval-expression.
- [86345887](86345887d8) Fixing the gpl template clash.
- [9c67bf00](9c67bf0044) lang/org: revert org-footnote-auto-label to default
- [de924daf](de924daf47) Fix [hlissner/doom-emacs⁠#4704](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4704): invalid image spec error from lsp-ui
- [4ff23752](4ff23752f2) Update parinfer module to comply with review.
- [8262e1b5](8262e1b552) Fix incorrect indentation.
- [ca673a43](ca673a437c) Move paren.
- [1a3c3ddf](1a3c3ddf34) Use `setq` instead of `setq!`.
- [96ba4b0b](96ba4b0b38) Use easier to read line break.
- [ba0f791b](ba0f791b05) lang/julia: improve lsp support ([hlissner/doom-emacs⁠#4012](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4012))
- [2ebc4be1](2ebc4be111) lang/org: reformat keybinds
- [49c3c84d](49c3c84d7f) lang/org: disable ob-async on export or :session
- [c5e3f4d6](c5e3f4d632) New autoload/system.el core library
- [ee26c02e](ee26c02e1c) Add org-agenda-priority keybindings to org config ([hlissner/doom-emacs⁠#4521](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4521))
- [f151b3de](f151b3de45) Load `autoload/system` in `core-cli`
- [0026404b](0026404b34) Use new CPU counter function in cc module
- [f3e527cd](f3e527cd3d) Set sh-mode's docsets to '("Bash").
- [8ccba925](8ccba925dd) Fix parsing issue in doom-system-distro{,-version}
- [ce1105b4](ce1105b463) lang/org: suppress :async+:session warnings for blacklisted langs
- [19563de3](19563de316) Restore fallback warning removed by ce1105b46
- [3d114d63](3d114d6356) tools/docker: default to evil normal state
- [468f3081](468f308114) Fix +org/refile-to-other-window in indirect buffer ([hlissner/doom-emacs⁠#4721](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4721))
- [70c8ca30](70c8ca30b2) Update docstrings for doom/window-{enlargen,maximize-buffer}
- [d5019f0b](d5019f0b57) Add docstring to +org/refile* commands
- [2ab8800b](2ab8800bb4) Fix [hlissner/doom-emacs⁠#4726](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4726): void-variable org-babel-async-language-blacklist
- [672e37b9](672e37b9aa) Bump :app everywhere
- [4a54a4bd](4a54a4bd64) Add warning to issue template
- [61e8069a](61e8069adc) Remind folks to search PRs in PR template
- [f8ed309b](f8ed309b50) lang/julia: include submodules for lsp-julia
- [7798aa91](7798aa9190) Fix repo location in doom/help-packages
- [3bb27173](3bb271738a) Fix void-variable disto on M-x doom/info
- [fa292beb](fa292bebbb) Fix the "Yank file path" non-evil bindings
2021-03-12 11:02:18 +01: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 1.6 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%