org-superstar is no longer enabled by default, due to unicode-related crashes and general slowness betraying our "gotta go fast" mantra.
10 KiB
lang/org
Description
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
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-captureshell script and+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
+dragndropflag). - Integration with pandoc, ipython, 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
+org/export-to-clipboardand+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
+brainEnables org-brain integration.+dragndropEnables drag-and-drop support for images and files; inserts inline previews for images and an icon+link for other media types.+gnuplotInstalls gnuplot & gnuplot-mode, which enables rendering images from gnuplot src blocks or plotting tables withorg-plot/gnuplot(bound toSPC m b p, by default).+hugoEnables integration with hugo to export from Emacs well-formed (blackfriday) markdown.+ipython(DEPRECATED) Enables ipython integration for babel.+journalEnables org-journal integration.+jupyterEnables Jupyter integration for babel.+noterEnables org-noter integration. Keeps notes in sync with a document. Requires pdf-tools (:tools pdf) or DocView or nov.el to be enabled.+pandocEnables pandoc integration into the Org exporter.+pomodoroEnables a pomodoro timer for clocking time on tasks.+presentEnables integration with reveal.js, beamer and org-tree-slide, so Emacs can be used for presentations.+prettyEnables pretty unicode symbols for bullets and 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.+roamEnables org-roam integration. This requiressqlite3to be installed on your system.
Plugins
- htmlize
- ob-async
- org-cliplink
- orgit
- org-plus-contrib
- org-yt
- ox-clip
- toc-org
-
:lang crystal -
:lang go -
:lang nim -
:lang racket -
:lang rest -
:lang rst -
:lang rust -
:lang scala -
:editor evil -
:tools pdf -
+dragndrop -
+gnuplot -
+hugo -
+ipython -
+jupyter -
+pandoc -
+pomodoro -
+present -
+pretty -
+roam -
+noter
Hacks
- 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
:ui workspacesis 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 theerrorface 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
+org-enable-auto-reformat-tables-h). - Statistics cookies are updated when saving the buffer of exiting insert mode
(see
+org-enable-auto-update-cookies-h). - Org-protocol has been lazy loaded (see
+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
+org-init-babel-lazy-loader-h); loaded when a src block is executed. No need to useorg-babel-do-load-languagesin your config, just install your babel packages to extend language support (and ensure itsorg-babel-execute:*function is autoloaded). - If a variable is used as a file path in
org-capture-template, it will be resolved relative toorg-directory, instead ofdefault-directory(see+org-capture-expand-variable-file-a).
Prerequisites
Org has a few soft dependencies that you will need to make use of Org's more esoteric features:
- For inline LaTeX previews,
latexanddvipngis needed. - To render GNUPlot images (with
+gnuplotflag) thegnuplotprogram is needed. - To execute babel code blocks, you need whatever dependencies those languages
need. It is recommended you enable the associated
:langmodule and ensure its dependencies are met, e.g. install therubyexecutable for ruby support. org-roam(with the+roamflag) requiressqlite3to be installed.
MacOS
brew cask install mactex
brew install gnuplot
Arch Linux
pacman -S texlive-core texlive-bin texlive-science
pacman -S gnuplot
NixOS
environment.systemPackages = with pkgs; [
# any less than medium isn't guaranteed to work
texlive.combined.scheme-medium
];
TODO Windows
Features
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 INTIAL-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:news/2.1.0(~/.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 termsgimages:search terms(Google Images)github:hlissner/doom-emacsgmap:Toronto, Ontario(Google Maps)google:search termsorg:todo.org({org-directory}/%s)wolfram:sin(x^3)wikipedia:Emacsyoutube:P196hEuA_Xc(link only)yt:P196hEuA_Xc(likeyoutube, but includes an inline preview of the video)
Configuration
Changing org-directory
To modify org-directory it must be set before org has loaded:
;; ~/.doom.d/config.el
(setq org-directory "~/new/org/location/")
Changing org-noter-notes-search-path
To modify org-noter-notes-search-path set:
;; ~/.doom.d/config.el
(setq org-noter-notes-search-path '("~/notes/path/"))