Files
doomemacs/modules/lang/org
Henrik Lissner 8d7bf44c72 bump: :lang
FStarLang/fstar-mode.el@3bbfe93abd -> FStarLang/fstar-mode.el@537c31983f
Fuco1/sphinx-mode@77ca51adf9 -> Fuco1/sphinx-mode@038a9195b0
OCamlPro/ocp-indent@f38578c25d -> OCamlPro/ocp-indent@1213857683
ProofGeneral/PG@af2e7b9a4e -> ProofGeneral/PG@fbb2878e49
ShuguangSun/ess-view-data@dd6a85935b -> ShuguangSun/ess-view-data@5ec1c7206f
abicky/nodejs-repl.el@130d49b073 -> abicky/nodejs-repl.el@c232b4964b
agda/agda@900bdaa335 -> agda/agda@5e31b2534d
ananthakumaran/exunit.el@8de56e3fd5 -> ananthakumaran/exunit.el@9a7cfc3d78
bricka/emacs-kotlin-ts-mode@a25d56ceca -> bricka/emacs-kotlin-ts-mode@051c9ef534
clojure-emacs/cider@12f10a6f4b -> clojure-emacs/cider@389833f85a
clojure-emacs/clj-refactor.el@dc1bbc8cda -> clojure-emacs/clj-refactor.el@362cb46bf8
clojure-emacs/clojure-mode@b766094aea -> clojure-emacs/clojure-mode@28dc02114a
clojure-emacs/clojure-ts-mode@da56a6938f -> clojure-emacs/clojure-ts-mode@32490c80fa
cpitclaudel/company-coq@5affe7a96a -> cpitclaudel/company-coq@78ed04ce39
diml/utop@3322adaa52 -> diml/utop@33201e6076
emacs-ess/ESS@d19efaae12 -> emacs-ess/ESS@8369d574f1
emacs-geiser/chicken@5f2c1bb446 -> emacs-geiser/chicken@8342bad8ce
emacs-geiser/geiser@c1c27072a4 -> emacs-geiser/geiser@c8b862f00e
emacs-lsp/emacs-ccls@5636ee6c50 -> emacs-lsp/emacs-ccls@34251b799e
emacs-lsp/lsp-haskell@081d5115ce -> emacs-lsp/lsp-haskell@aa9b5bce35
emacs-lsp/lsp-java@21c89243ad -> emacs-lsp/lsp-java@9230a0007c
emacs-lsp/lsp-pyright@73377169be -> emacs-lsp/lsp-pyright@0e59c00c7f
emacs-lsp/lsp-sourcekit@1fb230109e -> emacs-lsp/lsp-sourcekit@30918cd1ae
emacs-php/php-mode@462b62248f -> emacs-php/php-mode@40b8abed30
emacs-rustic/rustic@29f912c750 -> emacs-rustic/rustic@2b4ac5de3b
emacs-straight/auctex@f58a2b972b -> emacs-straight/auctex@a2809e4d70
emacs-straight/org-mode@4e6d38d1a6 -> emacs-straight/org-mode@8b15a0d0b4
emacsorphanage/dart-mode@f82ff05230 -> emacsorphanage/dart-mode@edb45cb709
emacsorphanage/htmlize@8e3841c837 -> emacsorphanage/htmlize@c9a8196a59
emacsorphanage/restclient@bba663590f -> emacsorphanage/restclient@ad97f666b6
erlang/otp@b9d3ec017d -> erlang/otp@2a970bf725
fosskers/sly-overlay@d629450590 -> fosskers/sly-overlay@345b554ad0
fsharp/emacs-fsharp-mode@8d08f05788 -> fsharp/emacs-fsharp-mode@91abae13e8
fuxialexander/org-pdftools@5613b7ae56 -> fuxialexander/org-pdftools@2b3357828a
fxbois/web-mode@be2d59c8fa -> fxbois/web-mode@1eb0abb1a9
godotengine/emacs-gdscript-mode@5136be407a -> godotengine/emacs-gdscript-mode@a0d25b46d8
greghendershott/racket-mode@c4cc7c160b -> greghendershott/racket-mode@172b7d4c5a
hakimel/reveal.js@eb95b14531 -> hakimel/reveal.js@4cf184924d
haskell/haskell-mode@e9c3567393 -> haskell/haskell-mode@e5d32021ea
idris-hackers/idris-mode@ccf32ed0b5 -> idris-hackers/idris-mode@da5c22f436
jart/disaster@8b44591322 -> jart/disaster@0299c129d4
joaotavora/sly@ce17a568ef -> joaotavora/sly@63131ef965
jschaf/powershell.el@9efa1b4d0a -> jschaf/powershell.el@99e0e73082
jwiegley/nix-update-el@77022ccd91 -> jwiegley/nix-update-el@d67f4f7ba8
kaushalmodi/ox-hugo@e3365cb4e6 -> kaushalmodi/ox-hugo@a907ea9514
ledger/ledger-mode@d9b6648201 -> ledger/ledger-mode@e9bb645e8f
magit/orgit-forge@050590fbc7 -> magit/orgit-forge@5a0dbe2601
magit/orgit@224350397d -> magit/orgit@8493c24808
minad/org-modern@1723689710 -> minad/org-modern@d5e1f5af65
necaris/conda.el@05de0c8f0c -> necaris/conda.el@8a1a934a2d
nex3/haml-mode@a64d58df8f -> nex3/haml-mode@3bb4a96535
nix-community/nix-ts-mode@62ce3a2dc3 -> nix-community/nix-ts-mode@e68ef36312
ocaml/dune@422986440e -> ocaml/dune@28b7e8f3b2
ocaml/merlin@e4c66857ad -> ocaml/merlin@8b88b89ee7
oer/org-re-reveal@da7e1feba9 -> oer/org-re-reveal@4eb0f71474
org-noter/org-noter@a28f61238a -> org-noter/org-noter@aafa08a49c
org-roam/org-roam@c172951345 -> org-roam/org-roam@89dfaef38b
polymode/polymode@74ba75d4bc -> polymode/polymode@25ba9463a4
pope/ob-go@2067ed55f4 -> pope/ob-go@c6c7c811fb
ppareit/graphviz-dot-mode@8ff793b137 -> ppareit/graphviz-dot-mode@2c7ba85d19
purescript-emacs/psc-ide-emacs@4e614df553 -> purescript-emacs/psc-ide-emacs@c64b05d901
purescript-emacs/purescript-mode@8c4736759a -> purescript-emacs/purescript-mode@61732e23bd
pythonic-emacs/pyenv-mode@ba1a8c7bd7 -> pythonic-emacs/pyenv-mode@364bddb8f0
rust-lang/rust-mode@25d91cff28 -> rust-lang/rust-mode@9915b3a585
salmanebah/opencl-mode@204d5d9e0f -> salmanebah/opencl-mode@6464abf969
shoshin/minitest-emacs@5999c45c04 -> shoshin/minitest-emacs@d278e94fb1
skuro/plantuml-mode@ea45a13707 -> skuro/plantuml-mode@348e83ff19
slim-template/emacs-slim@8c92169817 -> slim-template/emacs-slim@0b1b380329
sogaiu/janet-ts-mode@ac684edf57 -> sogaiu/janet-ts-mode@0e4d04d648
swift-emacs/swift-mode@e30b9d46e0 -> swift-emacs/swift-mode@fc7df7bd90
szermatt/emacs-bash-completion@d0637428fd -> szermatt/emacs-bash-completion@762f28fefb
technomancy/fennel-mode@df8e83d6e2 -> technomancy/fennel-mode@0d638f6133
tpapp/julia-repl@317d560218 -> tpapp/julia-repl@681efc14a7
wbolster/emacs-python-pytest@25d9801562 -> wbolster/emacs-python-pytest@ed2ecee09d
ziglang/zig-mode@c46d024733 -> ziglang/zig-mode@dab3c37c2d
zweifisch/ob-elixir@8990a8178b -> zweifisch/ob-elixir@8e5d2f3c7a
2025-09-02 16:16:03 +02:00
..
2024-09-14 20:47:39 -04:00
2025-09-02 16:16:03 +02:00

:lang org

Description   unfold

This module adds org-mode support to Doom Emacs, along with a number of adjustments, extensions and reasonable defaults to make it more performant and intuitive out of the box:

  • A custom, centralized attachment system that stores files in one place, rather than in the same directory as the input file(s) (only applies to attachments from files in/under var:org-directory).
  • Executable code blocks with support for a variety of languages and tools (depending on what :lang modules are enabled).
  • Supports an external org-capture workflow through the bin/org-capture shell script and fn:+org-capture/open-frame.
  • A configuration for using org-mode for slide-show presentations or exporting org files to reveal.js slideshows.
  • Drag-and-drop support for images (with inline preview) and media files (drops a file icon and a short link) (requires doom-module:+dragndrop flag).
  • Integration with pandoc, jupyter, reveal.js, beamer, and others (requires flags).
  • Export-to-clipboard functionality, for copying text into formatted html, markdown or rich text to the clipboard (see fn:+org/export-to-clipboard and fn:+org/export-to-clipboard-as-rich-text).

Org is a system for writing plain text notes with syntax highlighting, code execution, task scheduling, agenda management, and many more. The whole idea is that you can write notes and mix them with references to things like articles, images, and example code combined with the output of that code after it is executed.

https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode/

Module flags

+brain
Enable doom-package:org-brain integration.
+contacts
Enable doom-package:org-contacts integration.
+dragndrop
Enable drag-and-drop support for images and files; inserts inline previews for images and an icon+link for other media types.
+crypt
Enable doom-package:org-crypt integraiton for encryption and decryption on org files.
+gnuplot
Install gnuplot & gnuplot-mode, which enables rendering images from gnuplot src blocks or plotting tables with fn:org-plot/gnuplot (bound to SPC m b p, by default).
+hugo
Enable integration with hugo to export from Emacs well-formed (blackfriday) markdown.
+journal
Enable doom-package:org-journal integration.
+jupyter
Enable Jupyter integration for babel.
+noter
Enable doom-package:org-noter integration. Keeps notes in sync with a document. Requires doom-module::tools pdf, DocView, or nov.el to be enabled.
+pandoc
Enable pandoc integration into the Org exporter.
+passwords
Enable doom-package:org-passwords integration.
+pomodoro
Enable a pomodoro timer for clocking time on tasks.
+present
Enable integration with reveal.js, beamer and org-tree-slide, so Emacs can be used for presentations. It automatically downloads reveal.js.
+pretty
Enable pretty unicode symbols for bullets+priorities and better syntax highlighting for latex. Keep in mind: this can be expensive. If org becomes too slow, it'd be wise to disable this flag.
+roam
Enable integration with org-roam v1. This requires sqlite3 to be installed on your system. Incompatible with doom-module:+roam2.
+roam2
Enable integration with org-roam v2. This requires sqlite3 to be installed on your system. Incompatible with doom-module:+roam.

Hacks

  • Adds support for a :sync parameter for org src blocks. This overrides :async.
  • Gracefully degrades :async babel blocks to :sync when doom-package:ob-async would cause errors or issues (such as with a :session parameter, which doom-package:ob-async does not support, or when exporting org documents).
  • The window is recentered when following links.
  • The breadcrumbs displayed in eldoc when hovering over an org headline has been reworked to strip out link syntax and normalize font-size disparities.
  • If doom-module::ui workspaces is enabled, persp-mode won't register org agenda buffers that are temporarily opened in the background.
  • Temporary org agenda files aren't added to recentf.
  • file: links are highlighted with the face:error face if they are broken.
  • TAB was changed to toggle only the visibility state of the current subtree, rather than cycle through it recursively. This can be reversed with:

    (after! evil-org
      (remove-hook 'org-tab-first-hook #'+org-cycle-only-current-subtree-h))
  • (Evil users) Nearby tables are formatted when exiting insert or replace mode (see fn:+org-enable-auto-reformat-tables-h).
  • Statistics cookies are updated when saving the buffer of exiting insert mode (see fn:+org-enable-auto-update-cookies-h).
  • Org-protocol has been lazy loaded (see fn:+org-init-protocol-lazy-loader-h); loaded when the server receives a request for an org-protocol:// url.
  • Babel and babel plugins are now lazy loaded (see fn:+org-init-babel-lazy-loader-h); loaded when a src block is executed. No need to use var:org-babel-do-load-languages in your config, just install your babel packages to extend language support (and ensure its org-babel-execute:* function is autoloaded).
  • If a variable is used as a file path in var:org-capture-template, it will be resolved relative to var:org-directory, instead of var:default-directory (see fn:+org--capture-expand-variable-file-a).

TODO Changelog

This module does not have a changelog yet.

Installation

Enable this module in your doom! block.

This module has no hard requirements, but these soft requirements are needed to use Org's more esoteric features:

MacOS

brew install --cask mactex
brew install gnuplot

Arch Linux

pacman -S texlive-core texlive-bin texlive-science texlive-latexextra
pacman -S gnuplot

For doom-module:+jupyter, install jupyterlab or jupyter-notebook (source).

Debian & Ubuntu

apt-get install texlive dvipng
apt-get install gnuplot

NixOS

environment.systemPackages = with pkgs; [
  # any less than medium isn't guaranteed to work
  texlive.combined.scheme-medium
  # required by +jupyter
  (python38.withPackages(ps: with ps; [jupyter]))
];

TODO Windows

TODO Usage

󱌣 This module's usage documentation is incomplete. Complete it?

Invoking the org-capture frame from outside Emacs

The simplest way to use the org-capture frame is through the bin/org-capture script. I'd recommend binding a shortcut key to it. If Emacs isn't running, it will spawn a temporary daemon for you.

Alternatively, you can call +org-capture/open-frame directly, e.g.

emacsclient --eval '(+org-capture/open-frame INITIAL-INPUT KEY)'

Built-in custom link types

This module defines a number of custom link types in +org-init-custom-links-h. They are (with examples):

  • doom-docs:index.org -> ~/.emacs.d/docs/%s
  • doom-modules:editor/evil/README.org -> ~/.emacs.d/modules/%s
  • doom-repo:issues -> https://github.com/hlissner/doom-emacs/%s
  • doom:core/core.el -> ~/.emacs.d/%s
  • duckduckgo:search terms
  • gimages:search terms (Google Images)
  • github:hlissner/doom-emacs
  • gmap:Toronto, Ontario (Google Maps)
  • google:search terms
  • kagi:search terms
  • org:todo.org -> {org-directory}/%s
  • wolfram:sin(x^3)
  • wikipedia:Emacs
  • youtube:P196hEuA_Xc (link only)

evil-mode keybindings

For evil-mode users, an overview of org-mode keybindings is provided here.

TODO Configuration

󱌣 This module's configuration documentation is incomplete. Complete it?

Changing org-directory

org-directory must be set before doom-package:org has loaded:

;; in $DOOMDIR/config.el
(setq org-directory "~/new/org/location/")

Changing org-noter-notes-search-path

;; in $DOOMDIR/config.el
(setq org-noter-notes-search-path '("~/notes/path/"))

Troubleshooting

Report an issue?

org-roam

Should I go with +roam (v1) or +roam2 (v2)?

Long story short: if you're new to doom-package:org-roam and haven't used it, then you should go with doom-module:+roam2; if you already have an org-roam-directory with the v1 files in it, then you can keep use doom-module:+roam for the time being, but it will eventually be removed, so you should migrate at your earliest convenience.

V1 isn't actively maintained anymore and is now basically EOL. This means that the feature disparity between the both will continue to grow, while its existing bugs and problems won't be addressed, at least by the main maintainers. V2 can be considered as a complete rewrite of the package so it comes with a lot of breaking changes.

To learn more about v2 you can use the next resources:

Migrating your existing files from v1 (+roam) to v2 (+roam2)

V2 comes with a migration wizard for v1 users. It's new, which means issues can appear during the migration process. Because of that, don't forget to backup your org-roam-directory before attempting to migrate.

In order to migrate from v1 to v2 using Doom follow the next steps:

  1. Enable doom-module:+roam2 flag (and disable doom-module:+roam if it was previously enabled) in your init.el.
  2. Ensure your org-roam-directory points to a directory with your v1 files.
  3. Run $ doom sync -u in your shell.
  4. Restart Emacs (if it was previously opened) and run org-roam-migrate-wizard command (M-x org-roam-migrate-wizard RET). The wizard will automatically attempt to backup your previous org-roam-directory to org-roam.bak, but just in case backup it yourself too.
  5. After the wizard is done you should be good to go. Verify the integrity of your data and whether it did everything as expected. In case of failure report your issue.

Frequently asked questions

This module has no FAQs yet. Ask one?

TODO Appendix

󱌣 This module has no appendix yet. Write one?