github-actions[bot] c4d3c05d53 flake.lock: Updating 'org (emacs-straight/org-mode)' - f83e4552 -> 07371128 (#343)
### Changes for org

On branch: main
Commits: f83e45526b...0737112852

- [5a10517d](5a10517d02) Add missing :package-version tags in changed `defcustom'
- [801ca4c6](801ca4c6d0) Backport commit 0f5352377 from Emacs
- [77d35c4e](77d35c4eec) Silence byte-compiler under 'make single'
- [4260f5a8](4260f5a8d7) org-manual: Clarify Handling :results class
- [4f88116e](4f88116e52) org-fold-subtree: Hide blank lines at the end as well
- [de2d2d92](de2d2d928f) ob-python: Wait for session initialization on slow machines
- [3ef0e3c3](3ef0e3c338) test-ob-python: Refactor test failing on CI to provide better backtrace
- [21413d35](21413d3589) org-clock-report: Improve docstring
- [08a8c9e6](08a8c9e678) org-attach.el: ID to path functions may return nil
- [00778ce2](00778ce2a6) Fix missing customization groups
- [d45a8962](d45a896289) test-ob-python: Disable test failing on CI when using older Emacs
- [d0941353](d094135388) ob-octave: Fix octave :results value parsing
- [84b48786](84b4878680) ox-html: Do not allow `org-html-preamble' to be 'auto
- [d4299eea](d4299eeac7) org-manual: Clarify similarities and differences between HTML pre/postamble
- [5c247fb2](5c247fb27b) org-html-postamble: Clarify that string value is format string
- [a831c18b](a831c18baf) fixup! test-ob-python: Disable test failing on CI when using older Emacs
- [dc63cdd2](dc63cdd220) org-test-load: Make tests with missing dependencies more prominent
- [fe67cebb](fe67cebb3a) fixup! test-ob-python: Disable test failing on CI when using older Emacs
- [ad623799](ad62379984) org-export: Allow "string with spaces" as #+OPTIONS: values
- [79c64d8c](79c64d8c3a) org-manual: Work around Emacs bug[emacs-straight/org-mode⁠#59293](http://r.duckduckgo.com/l/?uddg=https://github.com/emacs-straight/org-mode/issues/59293)
- [70cee181](70cee1810b) lisp/ox.el: Fix compiler warning
- [9e62aaf5](9e62aaf5e4) doc/org-manual.org: Suggest keywords to have space after colon
- [fcf63fb3](fcf63fb31e) lisp/ox-latex.el: fix `org-latex-guess-babel-language'
- [0b124d79](0b124d7968) doc/org-manual.org: Clarify that :results none can be used as reference
- [e43e92de](e43e92de12) mk/orgcard2txt.pl: Get version from org-version.tex
- [07371128](0737112852) mk/orgcard2txt.pl: Escape { to remove deprecation warnings

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-25 01:34:26 +00:00
2022-10-25 21:32:25 +01:00
2022-11-05 12:15:22 -03:00
2022-09-03 21:45:31 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Dependency updater Dependency Updater Status
Matrix Chat Matrix Chat

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; # Not needed if you're using the Home-Manager module instead
  };
}

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%