github-actions[bot] 621efea8ac flake.lock: Updating 'doom-emacs (hlissner/doom-emacs)' - 6d2c6b44 -> ef7113d6
### Changes for doom-emacs

On branch: develop
Commits: 6d2c6b44fa...ef7113d6c4

- [0d5ed1e2](0d5ed1e257) ophints: Add hooks for lispyville
- [513e05e8](513e05e856) notmuch: put org-mime behind +org flag
- [116fb4fc](116fb4fc64) [:lang racket] Fix typos
- [b66a0520](b66a0520b4) [:lang racket] Mention Arch packages
- [6aa29e82](6aa29e82ae) Fix [hlissner/doom-emacs⁠#4577](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4577): WS not at BOL is deleted to tab columns
- [aa97fd55](aa97fd5528) fix typo in how to set custom elfeed.org
- [b523d531](b523d5314d) change from list to ' form
- [3c418238](3c41823824) Fix wrong column being used and resulting bugs
- [c84bc953](c84bc953d9) Simplify (% current-column tab-width) code
- [8a40e83a](8a40e83ab5) unicode-chars-list-chars -> insert-char
- [f3b71b04](f3b71b0495) fix regex in lsp-file-watch-ignored-directories in elixir module
- [ff3c9777](ff3c9777e7) Bump :tools debugger lsp
- [528657a4](528657a426) bin/org-capture: fix hanging
- [755d4c7b](755d4c7b15) Add popup rule for *envrc* error buffers
- [9e5ba5fd](9e5ba5fd6c) Don't suppress user-error errors
- [fb89327f](fb89327ff2) Revert to straight's original bytecomp behavior
- [dee20c75](dee20c7585) Remove define-obsolete-*-alias fix
- [44a05892](44a0589281) Fix labeler action config
- [5c46a5e6](5c46a5e680) ui/treemacs: restore old h/l behavior
- [8e56aa87](8e56aa8706) Add lsp modeline
- [7ddfb627](7ddfb6271d) Add repl modeline
- [c224e2e7](c224e2e771) Move to global-mode-string
- [b9e0ee29](b9e0ee2954) Revert 5c46a5e68 & fix treemacs-evil load order
- [f3687454](f368745406) Fix eval on modeline
- [141938ef](141938ef94) editor/fold: fix load-order dependency on evil
- [59aabaea](59aabaead3) :ui modeline: Fix missing arg to function
- [62c231ef](62c231efe6) Bump rainbow-delimiters
- [69beabe2](69beabe287) Fix [hlissner/doom-emacs⁠#5060](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5060): don't hash relative backup file paths
- [2466f835](2466f835bc) Fix labeler workflow
- [b80b338b](b80b338b3c) doom--print: return message on success
- [eaa32572](eaa32572b9) lang/rust: fix void-variable flycheck-checkers error
- [3b0f2379](3b0f23792d) Distinguish C-m from RET
- [5bed0a6d](5bed0a6d16) Fix [hlissner/doom-emacs⁠#5057](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5057): don't read editorconfig files in archives
- [fa8f73d9](fa8f73d9ed) Revert b80b338b3
- [05866ce3](05866ce30f) ui/modeline: don't show encoding unless nondefault
- [059a70b7](059a70b74b) Enable hl-todo-mode in yaml-mode
- [e2077c82](e2077c823a) tools/lsp: minor refactor
- [de589e21](de589e21a2) org-tree-slide-skip-outline-level = 0
- [bd94ef8f](bd94ef8f84) Optimize reading org-agenda buffers in the bg
- [06063696](060636966f) Document :depth in add-hook! docstring
- [7c273ad1](7c273ad173) Remove hard dependency on sp-point-in-* predicates
- [1840ae8a](1840ae8a18) Backport VC-aware bug-reference-mode from 28.x
- [b237de56](b237de5619) Fix <C-m> shadowing keypad return
- [1e9870e1](1e9870e13a) Refactor bin/doom
- [6fdaaf3a](6fdaaf3ae6) Revert 3b0f23792 "Distinguish C-m from RET"
- [0196875d](0196875d9c) Remove redundant projectile-ignored-projects entries
- [d141f39e](d141f39ee7) tools/lsp: remove unneeded lsp-ui-*-enable checks
- [69bd3da1](69bd3da195) Don't enable lsp-ui-mode in lsp--auto-configure
- [f884a5d1](f884a5d169) Bump :lang cc
- [ef7113d6](ef7113d6c4) Fix [hlissner/doom-emacs⁠#5071](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5071): don't always emit 128 exit code
2021-06-03 19:40:34 +02:00
2021-01-23 17:15:48 +01:00
2021-05-21 00:15:09 +02: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.4 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%