github-actions[bot] f6ff84c6d0 niv org-mode: update a88806b5 -> 1a480e01
## Changelog for org-mode:
Commits: [emacs-straight/org-mode@a88806b5...1a480e01](a88806b554...1a480e01a4)

* [`752c466a`](752c466a63) org-agenda.el: Fix typo in docstring
* [`3ce495cc`](3ce495cc44) ob-ruby.el: allow specification of ruby command w/header arg
* [`7ebb2d56`](7ebb2d5629) Review face for export dispatcher highlighted keys
* [`95ed6bad`](95ed6badc0) ob-gnuplot: Download remote input files
* [`ae35a345`](ae35a34590) ob-latex.el: Make latex to svg compilation very customizable
* [`a442c251`](a442c2515d) ob-python: Rename exec tmpfile handle to prevent conflict
* [`0193b543`](0193b543e9) Backport commit 4a575eb18 from Emacs
* [`47bf6005`](47bf6005b3) Backport commit dd16e46bb from Emacs
* [`6edfc2b5`](6edfc2b57c) ob-java.el: Add support for variables, return values, tramp
* [`045ab009`](045ab0096a) ob-java.el: Fix spacing in generated main method
* [`5b6d774b`](5b6d774ba1) ob-java.el: Allow non-public classes
* [`5a41c62c`](5a41c62c26) ob-java.el: Use customizable commands, avoid incompatability
* [`eecc491f`](eecc491f1c) lisp/ob-clojure.el: Add bzg@gnu.org as the maintainer
* [`36f4df89`](36f4df8925) lisp/ob-R.el: Add Jeremie Juste as a maintainer
* [`e753766b`](e753766bc2) lisp/ob-abc.el: Add William Waites as the maintainer
* [`e8070d71`](e8070d71ab) Revert "org.el: Allow empty subtrees to be folded back"
* [`1d105a42`](1d105a4298) lisp/ob-eshell.el: Add stardiviner as the maintainer
* [`b499b082`](b499b0827d) lisp/ob-screen.el: Add Ken Mankoff as a maintainer
* [`4d3eaf85`](4d3eaf85a3) lisp/ob-mscgen.el: Add Justin Abrahms as the maintainer
* [`ae7b2904`](ae7b29047d) lisp/ob-dot.el: Add Justin Abrahms as the maintainer
* [`2b3bbf36`](2b3bbf3618) x11idle: Make installation a little smoother
* [`20374f69`](20374f69e8) ob-exp: Restore evaluation query for lob calls during export
* [`ad2115f2`](ad2115f2c1) ob-gnuplot: Silence byte compiler
* [`ce02d52b`](ce02d52bc4) ob-java.el: Change the default back to scripting mode
* [`2d21c0d6`](2d21c0d686) lisp/ob-groovy.el: Add Palak Mathur as a maintainer
* [`19d2f79a`](19d2f79a0f) Speedup of org-id-update-id-locations
* [`8d7a9b4c`](8d7a9b4ce9) Hide drawers before first headline properly when cycling visibility
* [`dad436c6`](dad436c60b) Make `org-goto-first-child' behave intuitively before first heading
* [`51c4cc1a`](51c4cc1a8a) Prefer symbol for eval-after-load's FILE argument
* [`93325df0`](93325df0ba) ox.el: Add missing polish translations in export dictionary
* [`3f1c0444`](3f1c044441) ob-core: Drop redundant Edebug specification list
* [`3cc15f99`](3cc15f993f) org-manual.org: Remove language list and fix Worg link
* [`8ba7cf17`](8ba7cf17a2) manual: Drop orphan footnote definitions
* [`49f4c364`](49f4c364fd) manual: Re-attach a footnote to its definition
* [`e2fe5968`](e2fe596839) lisp/org.el: Display subtitle lines with document info faces
* [`04c35ce7`](04c35ce791) faces: Fix summary lines of two docstrings
* [`95af0a24`](95af0a244f) agenda: Consistently clear temporary agenda name
* [`370cf49c`](370cf49cd2) lisp/org.el: Use non-obsolete variable names
* [`ff5fd323`](ff5fd323b1) contrib/lisp/ox-taskjuggler.el: Use non-obsolete variable names
* [`e9c3993e`](e9c3993ee5) org-contacts.el: Add new link type "contact:"
* [`5371b30f`](5371b30fe5) ol.el: New option to set org-link-file-path-type to a function
* [`f6cf6bb6`](f6cf6bb6e2) manual: Mention org-agenda-set-effort
* [`26277729`](262777294f) archive: Account for org-odd-levels-only in datetree calculations
* [`1cc22220`](1cc2222045) ol-wl: add maildir and rss to folder types
* [`fd4eec03`](fd4eec036d) Backport commit 79d04ae13 from Emacs
* [`a97bb27f`](a97bb27f32) Backport commit 61dca6e92 from Emacs
* [`23896ba6`](23896ba683) ox-odt: Drop another (function (lambda ...))
* [`9bb93006`](9bb93006ea) Backport commit 844e82f5a from Emacs
* [`c38fda99`](c38fda993d) ob-java.el: Do not wrap a main method in a main method
* [`dc223814`](dc2238144f) ob-java.el: Allow for more whitespace in java code
* [`b04667a3`](b04667a370) contrib/lisp/: Fix some headers
* [`8bade78c`](8bade78ce6) lisp/org.el: Allow hiding #+SUBTITLE: keyword via `org-hidden-keywords'
* [`104d9219`](104d92199e) agenda: Fix toggling of archive files
* [`93087e0b`](93087e0b3a) lisp/ob-java.el: Make the default to write to the current directory
* [`1a480e01`](1a480e01a4) Remove redundant 'function's around lambda
2020-12-01 23:38:44 +01:00
2020-09-27 12:37:17 +02:00
2020-11-01 09:51:49 +01:00
2019-10-23 13:25:43 +02:00
2020-11-08 14:30:36 +01:00

nix-doom-emacs

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 exprerience as some dependenices 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")
  '';
}

Using flake.nix:

{
  inputs = {
    home-manager.url = "github:rycee/home-manager";
    nix-doom-emacs.url = "github:vlaci/nix-doom-emacs/flake";
  };

  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 ];
            home.doom-emacs = {
              enable = true;
              doomPrivateDir = ./doom.d;
            };
          };
        }
      ];
    };
  };
}

Under the hood

This expression leverages nix-straight.el under the hood for installing depdendencies. 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%