## Changelog for org-mode: Commits: [emacs-straight/org-mode@0571aa70...6b83c6e4](0571aa7010...6b83c6e4ea
) * [`a03f17e4`](a03f17e49f
) Fix org-in-archived-heading-p * [`dc1e037c`](dc1e037cd1
) ox: Add Turkish translation * [`7ce1a666`](7ce1a666d8
) lisp/ob-abc.el: Fix link to William Waites homepage * [`f6e41c1d`](f6e41c1d14
) org-id: org-id-get-with-outline-path-completion for file targets * [`8fde9fc9`](8fde9fc905
) Offer alternative to disabling electric-indent-mode * [`61f37f2e`](61f37f2e1a
) lisp/org.el: Bump version to 9.4.1 * [`5dc37543`](5dc375434c
) Clean up spacing to pass Emacs's pre-commit check * [`8fafb71f`](8fafb71fea
) org-startup-options: Fix docstring typo * [`d7d714c7`](d7d714c7d5
) Silence byte-compiler in Emacs repo * [`57a70d50`](57a70d5053
) ob-ruby.el: Funcall command if it's a function from inf-ruby-implementations * [`162e0e3e`](162e0e3e6e
) lisp/org.el: Bump version to 9.4.2 * [`34932216`](349322161d
) lisp/ob-perl.el: Add Corwin Brust as maintainer * [`93598350`](9359835001
) contrib/lisp/ob-julia.el: Add Alberto Ramos as maintainer * [`a64aa25f`](a64aa25fa5
) org-plot.el: make indentation method consistent * [`8d5122fc`](8d5122fc5e
) org-plot.el: add new option :transpose * [`a1d92bd9`](a1d92bd918
) org-plot.el: add new custom gnuplot preamble * [`bee7ef6f`](bee7ef6f46
) org-plot.el: abstract plot types into custom var * [`73c99bf4`](73c99bf42d
) org-plot.el: add utility functions for range,ticks * [`e905353d`](e905353d6e
) org-plot.el: add custom var for affecting the term * [`7b5113a3`](7b5113a3bc
) org-plot.el: tweak term, preamble custom vars * [`74f6a961`](74f6a9610e
) org-plot.el: add radar plot type * [`14a66b2b`](14a66b2b3a
) org-plot.el: fix logic error in transposition * [`1ac45d76`](1ac45d76e8
) org-plot.el: complete transition to softcoded type * [`c2fdf424`](c2fdf424a6
) org-plot.el: avoid arithmetic overflow error * [`a46cadfa`](a46cadfae3
) org-plot.el: add missing cl- prefixes * [`90815cc9`](90815cc948
) org-plot.el: radar plot, join last points to first * [`a831e763`](a831e763fa
) org-plot.el: Make min/max keywords consistent * [`1af809c5`](1af809c573
) org-manual.org: document org-plot changes * [`2af68d6a`](2af68d6a45
) etc/ORG-NEWS: Add an entry * [`01f57aa0`](01f57aa0df
) org-macs: Make org-mks window navigable when needed * [`678f4d4b`](678f4d4b35
) doc/org-manual.org: Remove a reference * [`a846152e`](a846152e4d
) doc/org-manual.org: Enhance examples * [`c822c80e`](c822c80ef8
) contrib/lisp/org-contacts.el: Add stardiviner as the maintainer * [`a4d0607e`](a4d0607e19
) contrib/org-mac-link.el: fix Mail.app link compatibility with macOS 11 * [`5ee39c35`](5ee39c3524
) ox-html: Add margin to fix overflow visibility problem * [`a4e6a6fa`](a4e6a6fa77
) lisp/org.el: Remove local variable `generated-autoload-file' * [`86af7e0c`](86af7e0c2f
) lisp/org.el: Bump version to 9.4.3 * [`11d186a7`](11d186a701
) Fix previous commit * [`baf1e7a6`](baf1e7a644
) ob-gnuplot: Fix error on non-string :var assignment * [`6ec2bb04`](6ec2bb04e3
) org-macs: Improve navigation in org-mks window * [`6bdb6644`](6bdb664406
) lisp/ob-haskell.el: Add Lawrence Bottorff as maintainer * [`de6d9022`](de6d90224c
) org-attach: Consider inlinetasks when calculating attach dir * [`e7f625d4`](e7f625d426
) org-contacts.el: Fix org-store-link error caused by org-contacts * [`6b83c6e4`](6b83c6e4ea
) org-contacts.el: Add support for org-id generated link.
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";
};
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 ];
programs.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