io12 / org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://melpa.org/packages/org-fragtog-badge.svg https://github.com/io12/org-fragtog/actions/workflows/check.yml/badge.svg

org-fragtog

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them

About

Org mode supports inline image previews of LaTeX fragments. These can be toggled with C-c C-x C-l . org-fragtog automates this, so fragment previews are disabled for editing when your cursor steps onto them, and re-enabled when the cursor leaves.

./demo.gif

Setup

Install and load the package, then add the snippet below to your config.

(add-hook 'org-mode-hook 'org-fragtog-mode)

Although this package uses Org mode’s fragment preview feature, it should work with anything that uses the same fragment syntax, such as Markdown files or formulas in code comments.

About

Automatically toggle Org mode LaTeX fragment previews as the cursor enters and exits them

License:MIT License


Languages

Language:Emacs Lisp 100.0%