github-actions[bot] 67e2c839fc flake.lock: Updating 'org (emacs-straight/org-mode)' - 42153ea2 -> ecb62e2e
### Changes for org

On branch: main
Commits: 42153ea2fe...ecb62e2e31

- [269dce9f](269dce9fe7) org-table: Require org-fold-core
- [954a95ec](954a95ec5f) ob-core: Revert space misalignment from recent commit
- [a6fc8d3f](a6fc8d3f1f) ox: Handle failure to localize link
- [8800d28e](8800d28e84) org: Use buffer-base-buffer in safe resource fns
- [5b076f50](5b076f5057) org-persist: Add missing end quote to docstrings
- [3b1e7af1](3b1e7af166) org-persist: Ensure index instantiated before read
- [e663b90f](e663b90fe5) org-persist: Fix unconditional gc of urls
- [47654f84](47654f844d) org-persist: Fix number of remote files kept
- [c9122635](c91226354a) org-persist: Fix attempted mapc-ing of macro
- [8b8a65ed](8b8a65ed02) org-persist: Introduce "associated files" for GC
- [534633d5](534633d508) org-persist: Use associated file functions for GC
- [1a9d0850](1a9d0850b6) org-persist: Do not re-download url files on write
- [41a8666c](41a8666c09) org-display-inline-remove-overlay: Do better job clearing images from cache
- [4c90e0b6](4c90e0b613) org-table: Require org-fold-core
- [8880cca3](8880cca3d6) ob-core: Revert space misalignment from recent commit
- [a12d15df](a12d15df98) org-display-inline-remove-overlay: Do better job clearing images from cache
- [92ac0005](92ac00051a) org-persist: Fix omitted argument
- [2a529ee5](2a529ee57b) org-element: Autoload org-element-use-cache
- [d440b242](d440b242b3) org-clock-clocktable-language-setup: Add Slovak translation
- [7f7fb256](7f7fb256c6) org-latex-listings-options: Update docstring
- [45dc1951](45dc19516a) org-inlinetask-min-level: Fix confusing sentence in the docstring
- [bdb4c4c6](bdb4c4c66e) org-export-get-ordinal: Fix breakage in 0551eba40
- [7048876f](7048876f6f) org-export-get-ordinal: Do not ignore ELEMENT type when TYPES is given
- [02909fe3](02909fe371) lisp/test-ox.el: Add tests for `org-export-get-ordinal'
- [4323a19b](4323a19b15) org-hide-drawer-startup: Add missing variable alias
- [47bcdce1](47bcdce19b) doc/org-manual.org: Document `org-hide-drawer-startup'
- [edd000f3](edd000f3b6) org-open-at-point: Link to `org-file-apps' in the docstring
- [794d502d](794d502da0) org-time-stamp-custom-formats: Document that variable affects export
- [0db972ad](0db972ad63) ox: Handle failure to localize link
- [88329143](88329143c8) org: Use buffer-base-buffer in safe resource fns
- [6a126e40](6a126e40a7) org-persist: Ensure index instantiated before read
- [402d2421](402d2421d9) org-persist: Do not re-download url files on write
- [fec15ded](fec15dedb9) test-ob-R.el: New function to test for :result output
- [662e814b](662e814bc0) ob-R.el: Restore the handling of org-list in as var
- [555dacfa](555dacfa8b) org-persist: Merge index with index file content
- [81f2741b](81f2741bca) prevent error in Octave process, add tests, update test docs
- [01c0ebee](01c0ebee2f) prevent error in Octave process, add tests, update test docs
- [aa86ed53](aa86ed534f) org-persist-write-all: Do not create index with no containers
- [2944a215](2944a2152d) org-persist: Use temporary index for emacs -Q
- [afe5f3f6](afe5f3f692) org-persist-gc: Fix edge case
- [751de021](751de02127) org-agenda-dim-blocked-tasks: Prioritize face over other overlays
- [c8b0a0d1](c8b0a0d1b6) Backport commit a15cd5504 from Emacs
- [22479987](2247998758) ob-core: Fix :results list when result is a table
- [18fec762](18fec7623c) ob-core: Fix :results list when result is a table
- [dd4e06dd](dd4e06ddc3) org-manual: Document third-party package compatibility
- [0c467b6b](0c467b6b89) lisp/ox-latex.el: Don't emit empty label=, caption=
- [322b2fd2](322b2fd226) lisp/ox-latex.el: Add `org-latex-listings-src-omit-language'
- [a58ab903](a58ab90395) lisp/ox-latex.el: Add export option for `org-latex-listings-src-omit-language'
- [12e10eb0](12e10eb0dd) * doc/org-guide.org: Fix typos
- [a29103a7](a29103a786) * testing/lisp/test-ob-octave.el: Disable tests failing on CI only
- [db34a7d8](db34a7d837) * lisp/ox-html.el (org-html-link): Fix call to `org-export-get-ordinal'
- [a8c9f117](a8c9f11757) Fix missing null check for tangle links during export
- [e2366ac2](e2366ac283) * lisp/org-persist.el: Do not litter /tmp when native compiling
- [987fe173](987fe173ac) org-persist: Do better job avoiding security issue described in `make-temp-name'
- [7f2f73c4](7f2f73c414) org-babel-read: Small fix
- [31880701](318807013c) oc-basic.el: Fix wrong type for the editors field when parsing JSON.
- [f1388100](f138810065) org-element: Allow inlinetasks to be commented and archived
- [718e1968](718e196830) org-back-to-heading: Fix at inlinetask END
- [63e073f9](63e073f96e) org-persist: Revert space misalignment from recent commit
- [9c79aede](9c79aedec7) org-agenda: Use more machine-friendly date output for csv export
- [b11abb40](b11abb409c) org-babel-insert-result: Output strings as is for lists of strings
- [14cbbac2](14cbbac212) Backport commit 2608e5edc from Emacs
- [de83f548](de83f548d9) org-persist-write:file: Do not overwrite existing cached file
- [ecfb55af](ecfb55af0a) org-src.el: Apply common faces even when src block language mode is absent
- [fc4bbb28](fc4bbb28f8) org-search-view: Fix searching across inlinetasks
- [e8cb52bd](e8cb52bd3e) org-persist-read: Attempt to write newly register data before reading
- [f8428d0f](f8428d0f3e) org-fold-core--isearch-show: Small refactoring
- [ffec2db7](ffec2db731) org-persist-write:elisp: Allow buffer-local/global elisp container scope
- [a97b378e](a97b378ee5) org-persist-read: Do not return related containers by default
- [14bfe284](14bfe2841c) org-persist: Use `list-data-mode' for stored data
- [13e78df4](13e78df46a) * lisp/org-persist.el: Update commentary
- [dedf1cc2](dedf1cc21f) org-persist: Add more normalizations and new `elisp-data' container
- [e5c45358](e5c45358ae) test-ob-octave.el: Avoid race condition on slow machines
- [a9c0d4cd](a9c0d4cde2) org-occur-in-agenda-files: Respect agenda restriction
- [21741a46](21741a4696) * lisp/ob-python.el: Mark python-mode support for removal
- [b2adb68a](b2adb68afa) * doc/org-manual.org: Clarify :results file link with no :file
- [fbd08a0d](fbd08a0d9b) oc-basic: Display ?? in place of missing citations on export
- [5bc5add3](5bc5add326) lisp/org-keys.el: Provide terminal binding for `org-insert-structure-template'
- [e5a3a07c](e5a3a07cac) lisp/ob-scheme.el: Add Rudolf Adamkovič as the maintainer
- [29103fc6](29103fc602) oc-csl: Improve LaTeX bibliography formatting
- [e8ceb4a2](e8ceb4a2cb) lisp/ob-shell.el: Add Matt <matt@excalamus.com> as maintainer
- [89bf4b43](89bf4b431a) etc/ORG-NEWS: Minor rewording
- [40e1c6c0](40e1c6c050) etc/ORG-NEWS: Fix typo
- [e204c3a6](e204c3a6cc) test-ob-shell.el: Split test-ob-shell/dont-error-on-empty-results
- [6e001286](6e0012867d) test-ob-shell.el: Refactor test-ob-shell/session
- [18577a49](18577a495b) org-persist-register: Fix MISC argument handling
- [62dc4950](62dc49509c) org-assert-version: Do not display "'" as "’" in the code sample
- [728e7fca](728e7fca81) test-ob-shell.el: Refactor ob-shell/generic-uses-no-assoc-arrays
- [2a0f5a51](2a0f5a5153) Refactor ob-shell/bash-uses-assoc-arrays
- [3dbc7849](3dbc7849a3) test-ob-shell.el: Refactor test names and kill test buffers
- [94854502](9485450222) ob-shell-test.org: Remove ob-shell-test.org
- [9ed28210](9ed2821053) test-ob-shell.el: Organize tests
- [92a40cf7](92a40cf7a1) Backport commit 9292f595a from Emacs
- [79e5e42e](79e5e42e50) test-ob-octave.el: Remove test clauses causing race condition
- [9cee879b](9cee879b36) org-assert-version: Small refactoring
- [e0815d75](e0815d7545) Backport commit cae528457 from Emacs
- [58e93869](58e93869b7) Touch up copyright lines from cae528457
- [a43866e1](a43866e1cf) Update remaining copyright years
- [563a4396](563a4396b6) org-assert-version: Deleting trailing whitespace
- [1cd39c9e](1cd39c9e30) org-mode: Fix element cache updates when aligning tables during startup
- [34540214](3454021483) Revert "org-babel-read: Obey `org-confirm-babel-evaluate'"
- [ce6f1799](ce6f1799cc) org-options-keywords: Add missing keyword
- [9e5c25ba](9e5c25ba75) org-persist-unregister: Allow removing related containers
- [58aeb1af](58aeb1af15) org-persist-unregister: Fix when ASSOCIATED is 'all
- [001e1149](001e114936) Revert "lisp/ob-scheme.el: Add Rudolf Adamkovič as the maintainer"
- [93339de7](93339de71b) org-babel-shell-initialize: Fix `org-babel-prompt-command'
- [a3815a16](a3815a169a) org-cycle-level: Do nothing at inlinetasks
- [28a96648](28a9664844) org-manual.org: Clarify that `org-insert-property-drawer' is not a command
- [41ebc2e4](41ebc2e40c) test-ob-octave.el: wrap get-buffer in buffer-live-p
- [5a8a1d4f](5a8a1d4ff9) org-compile-file: Expand "~" in SOURCE
- [a6523f1a](a6523f1aa0) org-export-output-file-name: Remove redundant `cond' clause
- [dfcf500d](dfcf500df5) org-cdlatex-mode: Fix regression from f01390cf05
- [630f86df](630f86dfc4) Update version number for the 9.6.1 release
- [597ecaa5](597ecaa5c1) Revert "Merge branch 'ob-shell-cleanup-tests'"
- [875845de](875845de1b) test-ob-shell.el: Split test-ob-shell/dont-error-on-empty-results
- [2ddbee5e](2ddbee5e63) test-ob-shell.el: Refactor test-ob-shell/session
- [c61112c8](c61112c850) test-ob-shell.el: Refactor ob-shell/generic-uses-no-assoc-arrays
- [16ea9f84](16ea9f84f6) Refactor ob-shell/bash-uses-assoc-arrays
- [d7ff5b24](d7ff5b2462) test-ob-shell.el: Refactor test names and kill test buffers
- [ccd5977f](ccd5977f62) ob-shell-test.org: Remove ob-shell-test.org
- [bcca8819](bcca8819c3) test-ob-shell.el: Organize tests
- [89d13998](89d13998bd) org-element-fixed-width-parser: Fix when :value is empty
- [a52d0f09](a52d0f0918) org-export-as: Fix subtree export when metadata ends right before heading
- [0d5951a9](0d5951a9b0) org-refile: Fix edge case when we refile on top of the same subtree
- [ecb62e2e](ecb62e2e31) org-babel-shell-initialize: Refactor
2023-01-13 01:19:00 +00:00
2022-10-25 21:32:25 +01:00
2022-11-05 12:15:22 -03:00
2022-09-03 21:45:31 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Dependency updater Dependency Updater Status
Matrix Chat Matrix Chat

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; # Not needed if you're using the Home-Manager module instead
  };
}

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%