github-actions[bot] 7ec95f43ec flake.lock: Updating 'org (emacs-straight/org-mode)' - 98cae03b -> 48b237d9 (#323)
### Changes for org

On branch: main
Commits: 98cae03b7d...48b237d9e2

- [deb1517f](deb1517fe9) org-macs.el: Do not compare wall time and file modification time
- [ee3dbb0f](ee3dbb0fdb) ob-java: Define the list of all supported header arguments
- [d98a4964](d98a496480) org-lint: Fix regexp when matching header-args
- [cce846e5](cce846e5f7) org-manual: Clarify `org-timer-start' command description
- [3502ce2d](3502ce2dbb) ox-odt: Fix newlines replaced by spaces in Han script
- [85ab64c2](85ab64c2b3) org-clock-select-task: Do not offer non-printable characters in selection
- [e7005787](e700578799) ob-core.el: Fix indentation of multiline text in list output
- [bed47b43](bed47b437d) test-ob-java: Test Java source block header arguments at all levels
- [801c9363](801c93638a) ob-shell: Fix multi-line scripts in sessions
- [a83edd62](a83edd624b) fixup! ob-shell: Fix multi-line scripts in sessions
- [524e0e0b](524e0e0b7b) test-ob: Test indentation of multiline text in list output
- [2f5e7103](2f5e7103e5) ox-odt: Improve link generation in 4e5c737311
- [69e3a4db](69e3a4db3d) org-babel: Refactor temporary directory usage
- [1ef420b1](1ef420b19d) org-babel-comint-with-output: Handle output without trailing newlines
- [ab7eff9d](ab7eff9d9c) org-babel-eval-error-notify: Avoid uninformative empty error buffer
- [f8a9cd23](f8a9cd2308) org-babel-eval: Return command output even upon failure
- [9a3dd429](9a3dd429bb) org-babel-import-elisp-from-file: Fix when \"s are not around
- [633ca9e6](633ca9e69e) org-babel-read: Fix cells like '"string" more'
- [d4e3598a](d4e3598ab8) fixup! org-babel-read: Fix cells like '"string" more'
- [48b237d9](48b237d9e2) org-attach-attach: Fix storing link to attached files

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-10-29 14:43:08 +00:00
2022-10-25 21:32:25 +01:00
2022-10-23 19:13:03 +00: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%