Skip to content

Open, create, export, and display excalidraw in org mode

Notifications You must be signed in to change notification settings

4honor/org-excalidraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

org-excalidraw.el is developed to create, open, export, and display excalidraw in org mode.

Requirements

To work as experted, the following requirements should be fullfiled.

Open Drawings

In order to open/edit excalidraw, you can:

  1. Install an excalidraw app in Google Chrome
  2. Make the excalidraw the default application to open files with .excalidraw extension
  3. Use resource opener of your desktop environment to verify:
    • For Linux, run xdg-open /path/to/example.excaldiraw
    • For Mac, run open /path/to/example.excalidraw

Create Thumbnails

SVG thumbnails are created for exporting and displaying. In order to achieve this goal, one of the following softwares should be setuped correctly.

Installation

You must download the code and require it manually.

;; add to load path
(add-to-list 'load-path "/path/to/org-excalidraw.el")

;; load
(require 'org-excalidraw)

or use use-package with quelpa enabled:

(use-package org-excalidraw
  :commands (org-excalidraw-create-drawing)
  :quelpa (org-excalidraw :repo 4honor/org-excalidraw :fetcher github)
  ;; customize diragram directory
  (setq org-excalidraw-default-directory "/path/to/diragrams/root"))

(require 'org-excalidraw)

Usage

  • Treat excalidraw link type in the same way org mode provides for other link types
  • Command org-excalidraw-create-drawing can be used to creat a blank drawing
  • Customization org-excalidraw-default-directory can be used to specify where the new diagrams should be stored

Thanks

The work is based on the following works:

About

Open, create, export, and display excalidraw in org mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published