### Changes for org On branch: main Commits:adccb81d54...d2a459d259
- [67efaa73](67efaa739a
) CONTRIBUTE: Link WORG page when explaining commit message format - [96529e93](96529e933b
) org-element-export-snippet-parser: Fix snippets without ending @@ - [81a2fe4f](81a2fe4f0b
) org-agenda: Use `window-max-chars-per-line' to calculate max text width - [79959c4e](79959c4ee4
) etc/ORG-NEWS: Update reference to a mail - [71423926](7142392646
) etc/ORG-NEWS: Remove outdated entry - [d5410433](d5410433e9
) ORG-NEWS: Drop spurious headings added by recent commit - [88f86237](88f86237c5
) Add org-fold-core: new folding engine - [91b4c6e6](91b4c6e6ea
) Separate folding functions from org.el into new library: org-fold - [ffdc5084](ffdc508429
) Separate cycling functions from org.el into new library: org-cycle - [d72ac89c](d72ac89c7c
) Remove functions from org.el that are now moved elsewhere - [b415111a](b415111aff
) Disable native-comp in agenda - [b7dae51d](b7dae51dbb
) org-macs: New function org-find-text-property-region - [bc0caec6](bc0caec6eb
) org-at-heading-p: Accept optional argument - [d048c153](d048c153dd
) org-string-width: Reimplement to work with new folding - [fa7530c7](fa7530c7b4
) Rename old function call to use org-fold - [67275f46](67275f4664
) Implement link folding - [77aa9be5](77aa9be5ac
) Implement overlay- and text-property-based versions of some functions - [cd83606c](cd83606cfd
) org-fold: Handle indirect buffer visibility - [f63ff074](f63ff07441
) Fix subtle differences between overlays and invisible text properties - [bf6bd6d2](bf6bd6d21d
) Support extra org-fold optimisations for huge buffers - [4fbd8bfa](4fbd8bfae0
) Alias new org-fold functions to their old shorter names - [a6eab82f](a6eab82fd6
) Obsolete old function names that are now in org-fold - [d4f65e74](d4f65e74a2
) org-compat: Work around some third-party packages using outline-* functions - [17e76242](17e762426d
) Move `org-buffer-list' to org-macs.el - [e8d8db63](e8d8db63a0
) Restore old visibility behaviour of org-refile - [6d4e65a1](6d4e65a124
) Add org-fold-related tests - [a8f4270a](a8f4270ac1
) org-manual: Update to new org-fold function names - [8f6ce702](8f6ce702bd
) ORG-NEWS: Add list of changes - [52a0ef94](52a0ef94c9
) Backport contributed commits - [240a1498](240a14988f
) Fix typo: delete-duplicates → delete-dups - [baffebbc](baffebbc33
) Fix bug in org-get-heading - [f813f108](f813f10818
) Rename remaining org-force-cycle-archived → org-cycle-force-archived - [3fba3490](3fba34900e
) Fix org-fold--hide-drawers--overlays - [2e3566e1](2e3566e1e9
) org-string-width: Handle undefined behaviour in older Emacs - [0daa209a](0daa209a74
) org-string-width: Work around `window-pixel-width' bug in old Emacs - [0bca8bc4](0bca8bc418
) org-fold-show-set-visibility: Fix edge case when folded region is at BOB - [3da1b2d2](3da1b2d240
) org-fold-core: Fix fontification inside folded regions - [444d1c50](444d1c50ac
) test-org/string-width: Add tests for strings with prefix properties - [87babca8](87babca898
) org--string-from-props: Fix handling folds in Emacs <28 - [f28f02bd](f28f02bde9
) org-link-make-string: Throw error when both LINK and DESCRIPTION are empty - [d2775da0](d2775da08d
) test-ol/org-toggle-link-display: Fix compatibility with old Emacs - [062e30be](062e30be8a
) org-macs.el: Fix fontification checks take 2 - [219bc6c2](219bc6c2d3
) org-fold-core-fontify-region: Fix cases when fontification is not registered - [ce58542c](ce58542c85
) org-agenda.el: Re-enable native compilation - [fc6314b2](fc6314b267
) org-fold.el: Fix typo - [9bc6c363](9bc6c363da
) org-fold-core: Fix edge case when fontification goes beyond requested - [312f39a0](312f39a05d
) org-string-width: Do not remove face info when PIXELS is non-nil - [2249f4d7](2249f4d7e5
) org-fold-core-fontify-region: Remove unused variable - [24c1c877](24c1c877cf
) org-fold-core-fontify-region: Calculate jit-lock-bounds accurately - [40710445](407104459b
) org-fold: Honour `org-fold-show-context-detail' for isearch - [4280762e](4280762e4c
) org-refile: Restore previous behaviour of not revealing the refiled headline - [2d6f26c0](2d6f26c057
) org-fold: Prevent folding level 1 headlines - [e359b01a](e359b01a63
) doc/org-manual.org: Fix clocktable dynamic block examples - [98a771cc](98a771cc3b
) test-ob-octave: Add missing `provide' - [e142bd8a](e142bd8a9a
) org-fold: Fix folding blank lines after newly inserted heading - [1ed9e422](1ed9e42238
) org-todo: Fix point moving after setting todo keyword in empty heading - [a0b8adf0](a0b8adf08a
) org-fold: Reveal hidden macro markers - [782a6619](782a661921
) org-fold-show-set-visibility: Do not reveal emphasis unless DETAIL is `local' - [a3dac4d2](a3dac4d20a
) fixup! org-fold-show-set-visibility: Do not reveal emphasis unless DETAIL is `local' - [2063596b](2063596b90
) ob-core.el: Add `:noweb-prefix` babel header argument - [5f184b5f](5f184b5f23
) org-inlinetask.el: Fix visibility cycling for inlinetasks - [4a30e8cc](4a30e8cc0c
) test-org-macs.el: Add test for template-expansion bug - [82a09ba0](82a09ba0ae
) org-macs.el: Fix template expansion - [dba46b7b](dba46b7bc0
) * doc/org-manual.org (Tracking your habits): Fix module tag habits -> habit - [2bd34edb](2bd34edb64
) ob-tangle.el: Handle non-string arguments more gracefully - [f8bb4146](f8bb414615
) org-at-timestamp-p: Fix compatibility with Emacs 26 - [5d3173cb](5d3173cb04
) org-compile-prefix-format: Document argument - [ebbef7b3](ebbef7b30c
) org-fold-save-outline-visibility: Make it work with 'text-properties - [d2a459d2](d2a459d259
) org-fold-check-before-invisible-edit: Be smart about editing at border 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,
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