github-actions[bot] 0f9a9752a0 flake.lock: Updating 'org (emacs-straight/org-mode)' - d9479887 -> 99681ce3 (#216)
### Changes for org

On branch: main
Commits: d947988722...99681ce389

- [0583a0c5](0583a0c5ea) org: Add setting for remote file download policy
- [c550a429](c550a42902) oc-basic: Parse @string entries in BiBTeX bibliographies
- [bf930b6f](bf930b6fe5) ; * lisp/org-refile.el (org-refile-targets): Fix typo.
- [132a9d30](132a9d304e) Use unknown DST instead of standard time in timestamps
- [a1896976](a189697681) Fix tests for `org-parse-time-string' and `org-clock'
- [a4105d09](a4105d0942) Use higher level helpers instead of `encode-time'
- [f3802b01](f3802b017c) testing/lisp: Use `org-time-string-to-time'
- [8908a1bd](8908a1bda1) org-macs.el: Introduce a helper for `encode-time'
- [ae1db7df](ae1db7df39) Use `org-encode-time' helper macro
- [e08ce5b2](e08ce5b27d) test-org.el: Add some tests for `org-test-with-timezone'
- [79f0969c](79f0969ccc) * doc/org-manual.org (Using CDLaTeX to enter math): Clarify ' binding
- [064afa0c](064afa0c01) org-indent: Fix edge case when edited region ends at headline leading stars
- [b4a72ddf](b4a72ddf98) org-agenda-show-current-time-in-grid: Use more common Unicode arrow
- [702b0a81](702b0a81e1) org-agenda-clock-report-header: Update docstring
- [df0e96ba](df0e96ba42) org-agenda-remove-restriction-lock: Remove 'file restriction
- [057df6cc](057df6cce2) org-open-at-point: Do not list links under headline that cannot be opened
- [9917d695](9917d69543) org-indent-region: Fix when `org-adapt-indentation' is 'headline-data
- [03543e17](03543e17dd) org-src-font-lock-fontify-block: Transfer 'font-lock-face property
- [3b7523ac](3b7523acd0) ob-gnuplot: Fix stable file collision when converting data
- [39005dc0](39005dc098) org-fold: Do not fold text inserted right after outline fold
- [df1814b8](df1814b83e) org-html-format-latex: Preserve buffer-local settings
- [db6c2297](db6c229786) testing/lisp: Update to handle new download policy
- [d2a110ff](d2a110ffe2) org-attach-attach: Allow attaching directories using 'cp method
- [99681ce3](99681ce389) org: Support completion of cite-related keywords

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-22 02:58:43 +01:00
2022-07-08 16:53:23 +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 1.6 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%