github-actions[bot] cd66da7f53 flake.lock: Updating 'doom-emacs (doomemacs/doomemacs)' - 35a89bdf -> bcca96a6
### Changes for doom-emacs

On branch: master
Commits: 35a89bdfa6...bcca96a69a

- [df62fcba](df62fcba26) docs: add category readmes
- [0aad1399](0aad1399cc) refactor(file-templates): doom readme templates
- [5b354ae4](5b354ae4f3) docs(:app): update READMEs to new format
- [b898fbe3](b898fbe303) docs(:checkers): update READMEs to new format
- [11793094](11793094ba) docs(:completion): update READMEs to new format
- [c27f0050](c27f005011) docs(:config): update READMEs to new format
- [9ada4008](9ada400805) docs(:editor): update READMEs to new format
- [73c1dd13](73c1dd1338) docs(:emacs): update READMEs to new format
- [2dcef764](2dcef764f1) docs(:email): update READMEs to new format
- [ca7579a1](ca7579a1e9) docs(:input): update READMEs to new format
- [20cac97c](20cac97c08) docs(:lang): update READMEs to new format
- [f6335bef](f6335befb4) docs(:os): update READMEs to new format
- [a2266554](a226655486) docs(:term): update READMEs to new format
- [6da20e45](6da20e45bd) docs(:tools): update READMEs to new format
- [b5a2aa48](b5a2aa48fe) docs(:ui): update READMEs to new format
- [7bc0033d](7bc0033d0a) docs: add doom-docs-mode & doom-docs-org-mode
- [4b6e15d4](4b6e15d419) dev: add 'doom make' commands
- [3766523f](3766523f1e) docs: move modules.org to modules/README.org
- [ccb5fde9](ccb5fde99b) docs: delete old org files
- [1decc382](1decc38237) docs: fix module readme CREATED & SINCE attrs
- [88844e9c](88844e9cec) docs: simplify internal docs links
- [2236c3bc](2236c3bcda) docs(rust): rustic-format-{on-save,trigger}
- [08071f92](08071f92b7) docs(doom): fix doom-variable-pitch-font reference
- [f6ee39ab](f6ee39abe3) docs(vertico): fix #+CREATED and #+SINCE keywords
- [a5f8d44d](a5f8d44d15) docs(magit): add docs for [doomemacs/doomemacs⁠#5846](http://r.duckduckgo.com/l/?uddg=https://github.com/doomemacs/doomemacs/issues/5846)
- [7423eef2](7423eef243) docs(lookup): fix typos
- [c9399c1a](c9399c1a19) docs(coq): expand README
- [23503cfb](23503cfb44) docs(haskell): fix docs for alternative formatter
- [b2c366d9](b2c366d946) docs(org): fix typo in capture example
- [58192633](58192633aa) docs(vterm): update nixos install instructions
- [71535d7f](71535d7ffc) docs(julia): update lsp environment to recent LTS
- [4bdcf48a](4bdcf48a0b) docs(org): add org-pretty-table to readme
- [8fa1f4bb](8fa1f4bb6b) docs(mu4e): enable automatic email fetching
- [0451c9b0](0451c9b0bc) docs(lsp): link to LSP tuning guide
- [402e5eb7](402e5eb723) docs(modeline): mention modeline hiding & strange icons
- [97ac6708](97ac670881) docs(snippets): document how to write your own snippets
- [1fb67e3c](1fb67e3cf7) docs(org): remove org-pretty-table
- [7246db45](7246db457c) docs: replace doom-source with doom-repo links
- [1daecbe5](1daecbe59c) fix(lib): cache errors in doom-docs-mode
- [6fcb99b3](6fcb99b35a) docs(company): code completion with multiple keywords
- [8d8ec41c](8d8ec41c5c) docs(agda): document +local flag
- [b21de243](b21de24311) docs(latex): add texlive-latexextra dependency for pdflatex exports
- [969c6ae8](969c6ae8aa) docs(tree-sitter): document +tree-sitter flag in :lang readmes
- [cf0696f5](cf0696f54b) docs(fold): mention ts-fold package
- [3ac5d6d5](3ac5d6d51a) docs(spell): can't add word to personal dict
- [fd6056bc](fd6056bc23) docs(org): add reference to evil-org keybindings
- [839970c2](839970c2de) docs(mu4e): fix incorrect variable name in snippet
- [7d93feb9](7d93feb98c) nit: minor reformatting, comment revision, & sharpquoting
- [7a9f8b18](7a9f8b18ab) refactor: resolve doom-{core,modules}-dir properly
- [493a049d](493a049dff) tweak: disable tty optimization in debug mode
- [068966a4](068966a4cd) bump: :core
- [491f49cf](491f49cfe5) refactor(cli): better error for missing profiles.el
- [6ffee6ec](6ffee6ece7) fix(cli): ensure type specs are case insensitive
- [04a09128](04a09128d4) nit(cli): stub 'doom test'
- [a2d22067](a2d2206797) feat(cli): allow defcli! in ci.el
- [a79b2ec6](a79b2ec69e) fix(cli): ensure order of subcommands in 'doom help'
- [f8fb8b18](f8fb8b189d) refactor(cli): remove unused synopsis examples
- [964b7dcb](964b7dcbee) fix(cli): indentation & docstring highlights for defstub!
- [510032bc](510032bcb0) refactor(lib): s/doom--debug-/doom-debug-/
- [9ea6ea68](9ea6ea68b0) tweak(lib): show chemacs version in doom-info
- [a9866e37](a9866e37e4) feat(lib): add doom-theme-face-attribute function
- [b9933e66](b9933e6637) refactor!: restructure Doom core
- [29dc2fed](29dc2fed29) refactor(cli): use sh! instead of doom-call-process
- [615848e3](615848e3a7) fix(cli): more future resistant 'doom upgrade'
- [55736ac2](55736ac2a6) fix(lib): prevent autoload failure at startup
- [614a54b0](614a54b036) fix(literate): Doom core load paths
- [dd348025](dd34802523) revert: compat
- [61d7200e](61d7200e64) revert: compat
- [4ee7f011](4ee7f0113e) fix(cli): show straight logs after straight error
- [d3f2b4d9](d3f2b4d9ca) docs(cli): fix issue tracker URL in 'doom help'
- [bfa90e82](bfa90e82e9) refactor(docs): use org-with-wide-buffer
- [c4b70713](c4b7071397) fix(docs): don't hide src blocks indiscriminately
- [4661ea89](4661ea89f2) tweak(docs): move point to first heading on visit
- [6bba5f8c](6bba5f8c03) tweak(docs): disable save-place when in documentation
- [cee641dd](cee641ddc8) feat(docs): hide leading stars
- [9744946a](9744946a66) docs(ligatures): mention doom-unicode-font incompatibilities
- [e77a45bc](e77a45bc22) docs: use lowercase keywords
- [3deba740](3deba740d3) feat(docs): add face:X link type to docs
- [cf2024b3](cf2024b356) tweak(docs): org-footnote-section = nil
- [4ec0ea96](4ec0ea963e) fix(docs): use org-fold-core-region
- [51440021](514400215f) refactor(docs): s/doom--docs-/doom-docs--/
- [24fab124](24fab1242a) docs(rest): mention +jq flag
- [c34168fb](c34168fb2a) docs(lsp): flesh out lsp-mode vs eglot comparison
- [1255315b](1255315bfc) refactor(docs): replace nav menus with virtual one
- [a634eb54](a634eb5497) refactor(docs): remove kbd expansion & table realignment
- [6fde2f63](6fde2f634c) fix(docs): update to reflect upstream changes
- [2bb052ac](2bb052ac17) tweak(lib): fix doomemacs URLs in help commands
- [58992a18](58992a1885) dev: use maintainers team in global codeowners rule
- [2d53fe61](2d53fe6123) refactor: resolve doom-core-dir relative to source file
- [3a5e34d6](3a5e34d67b) fix: premature doom init in doom sub-profiles
- [90c510ca](90c510caca) refactor(evil): remove evil-want-C-w-scroll
- [59745437](5974543732) feat(vc): add next conflict in project to +vc/smerge-hydra
- [16af1dee](16af1dee6e) fix(rust): enable rainbow-delimiters-mode in rustic-mode
- [8fc2d67e](8fc2d67eb9) tweak(latex): ask Skim.app to reload pdf
- [4a71d217](4a71d217bd) nit(php): license => licence
- [6e06bbb0](6e06bbb062) fix(docs): remove redundant doom-docs-dir
- [acf7a8a4](acf7a8a48d) feat(docs): add org-glossary support
- [64496a6c](64496a6c66) refactor(docs): tidy up
- [893434a5](893434a5db) tweak(docs): org-display-remote-inline-images = 'cache
- [7e400abd](7e400abdc0) fix(docs): set mode in file-local vars
- [b777300e](b777300e2c) tweak(org): move org caches to {doom-cache-dir}/org/
- [283e279d](283e279dce) bump: :lang org
- [52bda5f4](52bda5f4e7) fix: move bookmark-default-file to doom-etc-dir
- [6d4b2b48](6d4b2b48c2) fix(doom-dashboard): revert unintended changes
- [c1512fee](c1512feea1) fix(docs): disable doom-docs--hide-stars-h
- [00f39280](00f3928052) fix(mu4e): add missing icons for mu 1.8.X
- [08dac140](08dac1400f) fix(default): +default/yank-buffer-path echos the file name as nil
- [d6ffd2bf](d6ffd2bfaa) fix(file-templates): update doom doc templates
- [304774cf](304774cf39) docs(biblio,tree-sitter): update READMEs to new format
- [1b59b9a8](1b59b9a83a) docs(fortran,graphql): update READMEs to new format
- [3eb6f663](3eb6f663fe) docs(bidi): update READMEs to new format
- [ed04aef2](ed04aef2a9) docs: add PR ref to #+since lines
- [0cee8b4b](0cee8b4bee) docs: rewrite faq.org
- [fc73a81d](fc73a81d69) docs: add appendix.org
- [55544200](55544200be) release(modules): 22.08.0-dev
- [887e9fd1](887e9fd12c) feat(go): add test-file function and keybinding
- [3dc14870](3dc14870af) docs(php): add @elken
- [ea254509](ea254509aa) docs(javascript): add @elken, @iyefrat
- [b7cd35e4](b7cd35e43c) docs(haskell): add @iyefrat
- [bacb84f6](bacb84f6c6) docs(default): add @hlissner, @UndeadKernel
- [1e9d8ab3](1e9d8ab35e) bump: :lang python
- [293b3f9b](293b3f9be5) dev: update CODEOWNERS
- [ba668f7c](ba668f7cb0) fix(file-templates): indentation for licenses
- [2254b8c5](2254b8c561) fix(cli): doom-cli-context persistence
- [06db69bf](06db69bf76) fix(emacs-lisp): suppress popup warnings from flycheck
- [bcca96a6](bcca96a69a) refactor(literate): remove unused envvar __DOOMRESTART
2022-08-09 20:54:42 +01:00
2022-07-29 13:51:14 +01:00
2022-07-10 19:48:51 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
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/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;  # 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%