Skip to content

io12/org-fragtog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks