### Changes for org On branch: main Commits:22e6ed6b89...e7ea951ac9
- [edd7f296](edd7f2962f
) org-persist: Reimplement using more generic approach - [2a4e5a8e](2a4e5a8e58
) org-persist--normalize-associated: Use cache to calculate buffer hash - [7c2d9356](7c2d93560c
) org-persist-default-expiry: Introduce and change default - [1c79af13](1c79af13df
) org-persist-gc: Fix when expiry is days and data is freshly created - [38a681fd](38a681fdae
) org-element-cache-reset: Do not persist caches for non-file buffers - [dafa32da](dafa32da49
) org-persist: Update index version - [703df931](703df9310a
) org-persist: Cleanup on removal and version mismatch - [10845663](1084566322
) Fix org-persist-unregister - [8821ff58](8821ff5811
) org-persist-read: Do not try to read non-existing containers - [1869a37a](1869a37a2c
) Fix org-persist--remove-from-index - [20342050](203420504e
) org-persist-load:elisp: fix loading - [aca62116](aca62116da
) org-persist-write: Update buffer hash on save - [9b650938](9b650938e7
) org-persist: Provide human readable access time and make sure it exist - [f963d617](f963d617a4
) Fix checkdoc warnings - [d5fc159b](d5fc159bf7
) Fix compiler warnings - [4ec57a94](4ec57a9453
) org-persist: Update commentary - [dc52c0fe](dc52c0fe99
) Fix native-comp warnings - [fca80139](fca80139ee
) org-persist: Fix compatibility with Emacs 27 - [ec787fb2](ec787fb218
) org-persist: Implement "file" and "url" containers linked to other file - [f3bd1dcb](f3bd1dcb77
) org-persist: Fix compiler warnings - [1bc83898](1bc8389871
) org-persist-read: Check expiry - [0526acd1](0526acd16f
) org-persist-register: New optional keyword to force immidiate write - [eca67819](eca678195b
) org-persist-write: Return the written value on success - [0e18c617](0e18c617cf
) org-persist-write:index: Return index path on write - [6a5874bb](6a5874bb26
) org-persist-write: Overwrite existing copy if write is requested - [caccec2c](caccec2c54
) org-persist: Use symbols as container names - [6b175fb2](6b175fb227
) org-persist-register: Make return value meaningful with :write-immidiately - [f0e0716f](f0e0716f54
) org-element: Use new cache container format - [19a383d9](19a383d9f4
) org-persist-write-all: Speed up writing - [70146752](7014675226
) org-mode: Fix cache loading order - [1b675f0c](1b675f0ca8
) org-agenda: Make timestamp ordering match docs - [2b49d6fd](2b49d6fd9c
) org-id-update-id-locations: Disable cache in throwaway buffers - [dd6486a0](dd6486a070
) Make sure that declarative defvars do not set variable value - [b3ceafd0](b3ceafd0b9
) ol: Fix formatting in org-link--open-elisp - [6ee45518](6ee45518f3
) ox: Add link localisation feature using persist - [e7ea951a](e7ea951ac9
) ol: Fix formatting in org-link--open-shell Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
nix-doom-emacs
Status | |
---|---|
Build on master |
|
Build on develop |
|
Dependency updater |
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:rycee/home-manager";
nix-doom-emacs.url = "github:nix-community/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 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