Modern Org reading view and living-document engine for Emacs built on ETAF
  • Emacs Lisp 99.7%
  • Makefile 0.3%
Find a file
Kinneyzhang 1bc8cde45f chore(monorepo): harden publish script, Makefiles and manual versions
Default scripts/publish-packages.py to project from main without
--allow-backwards and add unit tests covering revision and safety flags.
Add standalone-clone guards to acceptance and api-check targets across
all package Makefiles, and align etaf-manual book version tables with
current package headers (etaf 0.3.18, etaf-manual 0.1.26).

Validation: make structure-check; python3 -m unittest tests/tools/test_publish_packages.py tests/tools/test_repository_policy.py; make -C packages/etaf-manual book-check; make -C packages/ecss check; make -C packages/etaf-install check
2026-11-28 09:01:14 +08:00
benchmarks feat(etaf-org): rename etaf-org-preview to etaf-org and ship full assets 2026-11-26 01:03:24 +08:00
docs docs: surface key customization in Usage, help and repo gate 2026-11-27 23:03:50 +08:00
examples chore(media): host showcase media on etaf.top/media and tighten policy 2026-11-28 01:02:36 +08:00
lisp docs: surface key customization in Usage, help and repo gate 2026-11-27 23:03:50 +08:00
native chore(archive): unify media/, ship docs/ and native typeset for org 2026-11-27 01:27:14 +08:00
scripts refactor(release): unify directory archive policy and slim tarballs 2026-11-27 00:34:01 +08:00
tests chore(media): host showcase media on etaf.top/media and tighten policy 2026-11-28 01:02:36 +08:00
.gitignore feat(etaf-org): rename etaf-org-preview to etaf-org and ship full assets 2026-11-26 01:03:24 +08:00
CHANGELOG.md fix(org): use static TOC row refs and pin scrolled outline on click 2026-11-27 12:10:43 +08:00
etaf-org.el chore(release): bump etaf-md, etaf-org for archive release 2026-11-27 23:04:13 +08:00
LICENSE feat(etaf-org): rename etaf-org-preview to etaf-org and ship full assets 2026-11-26 01:03:24 +08:00
Makefile chore(monorepo): harden publish script, Makefiles and manual versions 2026-11-28 09:01:14 +08:00
README.md chore(media): host showcase media on etaf.top/media and tighten policy 2026-11-28 01:02:36 +08:00

ETAF Org (etaf-org)

etaf-org renders native Org-mode documents as modern interactive reading views inside Emacs using ETAF and Ebox, and extends Org through a unified node registry, style-rule engine, Org-native container syntax, workspace live views, and an O(Δ) live-editing preview shell.

ETAF Org at a wide frame

Capabilities

  • Complete native Org rendering. Headlines with accumulating #+TODO: sequences, priorities, inherited tags, statistics cookies, COMMENT / :ARCHIVE:, real overdue calculation, planning lines, property drawers, LOGBOOK clock/state summaries, nested and description lists, clickable checkboxes, three-line booktabs tables (alignment/width cookies, whole-table centering, sorting, table copy, zebra, row/column/cell highlights), syntax-highlighted source blocks (line numbers, [!code ...] markers, word highlight, folding, copy, paired #+RESULTS:), quotes with formatted attributions, indented verses with inline markup, strict $...$ math vs currency disambiguation, multi-paragraph footnotes with ↩ return links, #+TOC:, #+SETUPFILE:, #+INCLUDE:, #+BIBLIOGRAPHY: / org-cite / #+PRINT_BIBLIOGRAPHY:, entities, timestamps/ranges, targets, and links.
  • Unified node & style-rule engine. Every core Org construct (headline, src, table, quote, drawer, planning, math) and every extended container lives in etaf-org-node-definitions. Style rules (etaf-org-set-attr) and view overrides (etaf-org-set-view) apply uniformly; user nodes load automatically from etaf-org-node-directory.
  • Focused editorial & Org living-document vocabulary. Write containers as standard Org #+begin_<name> :key val ... #+end_<name>, affiliated #+attr_etaf:, #+<marker>: child markers, #+BEGIN: dynamic blocks, and inline link micro-widgets ([[kbd:...]], [[badge:...]], [[sym:...]], [[color:...]], [[spoiler:...]], [[icon:...]], [[abbr:...]], [[roam:...]], [[denote:...]]). Includes curated L0 layout/collection/visualization/comparison widgets, bounded workspace L1 views (include, code-ref, symbol, project-tree, git-log, git-diff supporting Git and Jujutsu), Org-exclusive live views (org-query, kanban, clock-summary, transclude, backlinks), and explicit confirmation-gated L2 actions (run, opt-in Babel). Switch to pure Org at any time with :flavor 'standard or #+OPTIONS: etaf:nil.
  • Clean single-window reading & O(Δ) live editing. M-x etaf-org-open opens full-width in the current window with zero prompt on .org buffers and syncs to the source line; M-x etaf-org-preview toggles a non-destructive right split with proportional follow-scroll (f) and cleans up only its own window; v toggles single-window ↔ side-by-side split; e / o jumps back to source; T toggles an independent configurable TOC side window (*ETAF Org Outline*, etaf-org-toc-side defaulting to left, etaf-org-toc-width defaulting to 28); / filters sections live; K toggles a floating peek dialog; z/Z folds sections; S toggles spoilers; H toggles hidden metadata; t cycles themes; every preview action is also a preview-scoped M-x command (see Quick start to customize keys); and etaf-org-edit-mode provides optional Lisp-enabled authoring help.
  • Native zero-browser Mermaid & MathJax rendering. Display formulas ($$...$$, \[...\], \begin{align}...\end{align}) and mermaid blocks render asynchronously inside a sandboxed QuickJS native module (vendored Obsidian Pele + MathJax TeX-to-SVG, auto-installed via M-x etaf-install / M-x etaf-install-native, zero browser or Node.js required) into a bounded LRU disk cache tinted to the active palette (auto, dark, light, sepia). Pluggable etaf-org-src-renderers plus optional svg, dot, plantuml, and qrencode support.

Requirements

  • Emacs 29.1 or newer.
  • ETAF 0.3.11+, etaf-ui 0.3.11+, ebox, and ecss.
  • Prebuilt QuickJS native module (typeset-native, downloaded and SHA-256 verified automatically by M-x etaf-install or M-x etaf-install-native into ~/.cache/emacs-taf/native/) for Mermaid and MathJax SVGs.
  • Optional external CLI tools (inspect via (etaf-org-doctor)): ffmpeg (inline video), qrencode, git / jj, rg, dot, plantuml.

Installation

From the ETAF package archive, install via M-x etaf-install and select etaf-org (this installs all framework dependencies plus the prebuilt native Mermaid/MathJax module automatically), or load it after package-install:

(require 'etaf-org)

From a checkout, add this repository and its sibling providers to load-path and byte-compile:

make compile
(add-to-list 'load-path "~/emacs-taf/etaf-org")
(add-to-list 'load-path "~/emacs-taf/etaf-ui")
(add-to-list 'load-path "~/emacs-taf/etaf")
(add-to-list 'load-path "~/emacs-taf/ebox")
(add-to-list 'load-path "~/emacs-taf/ecss")
(require 'etaf-org)

Quick start

  • M-x etaf-org-open: open a full-width reading view in the current window (zero prompt when visiting a .org buffer; pass C-u to pick another file).
  • M-x etaf-org-preview: toggle a non-destructive right-hand live split beside the current .org source buffer with proportional follow-scroll (or toggle split when invoked inside a preview buffer).
  • Optional Lisp hook: (add-hook 'org-mode-hook #'etaf-org-edit-mode) enables soft highlighting, CAPF completion, and block-pair matching in Org source buffers without adding extra global M-x commands.

Keybindings and customizing keys

Inside a preview buffer, press ? to browse all active single-key shortcuts (n/p headings, j jump, T TOC side window, e/o goto source, v toggle split, f follow scroll, / filter, z/Z fold, K peek, S spoilers, H hidden metadata, t theme, [/] measure, g/r reload, q close). See docs/manual.md for the full command table.

Preview bindings are defined in the customizable variable etaf-org-keys rather than a traditional major-mode keymap (defaults use single keys only so C-c / C-t / C-x prefixes are never shadowed, and every action is also callable via M-x / M-X inside a preview buffer). Each entry has the form (KEY COMMAND LABEL).

Run M-x customize-variable RET etaf-org-keys, or edit etaf-org-keys in your init file (changes apply to newly opened previews):

(with-eval-after-load 'etaf-org
  ;; Rebind `e' to `C-c e' and unbind `o':
  (setq etaf-org-keys
        (cons '("C-c e" etaf-org-goto-source "Jump to source")
              (assoc-delete-all "o"
                                (assoc-delete-all "e" (copy-sequence etaf-org-keys))))))

;; Or disable all default single-key bindings (useful for Evil / Meow users):
;; (setq etaf-org-keys nil)

Headless embedding example:

(let* ((session (etaf-org-create :file "~/notes.org" :theme 'auto))
       (buffer (etaf-mount (generate-new-buffer " *org*")
                           (etaf-org-view session)
                           '(:viewport-width 100 :viewport-height 40))))
  (etaf-org-state session))

The root entry's Commentary in etaf-org.el is the authoritative public API inventory.

Documentation

Development

make compile          # byte-compile with warnings as errors
make test             # public behavior scenarios (tests/acceptance.json)
make check            # structure, compile, acceptance, and API boundary gates
make benchmark        # parse, mount, fold, and edit/repaint timings

Runnable examples: examples/complete-gallery.org, examples/widgets-showcase.org, and examples/etaf-org-demo.el.