Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Bozhidar Batsov (a.k.a. Bug)
Bozhidar Batsov (a.k.a. Bug)
@bbatsov@hachyderm.io  ·  activity timestamp 5 days ago

@RePierre @debacle Seems it also have a couple of major modes - I've learned about d2 when browsing MELPA PRs https://github.com/melpa/melpa/pull/9848 :-)

  • Copy link
  • Flag this post
  • Block
RePierre
RePierre
@RePierre@mastodon.social  ·  activity timestamp 5 days ago

@bbatsov this seems to be a nice alternative Graphviz, but I don't know if/how it will work in #Emacs.

  • Copy link
  • Flag this comment
  • Block
Debacle
Debacle
@debacle@framapiaf.org  ·  activity timestamp 5 days ago

@RePierre @bbatsov

Looks like #grahpviz on steroids 🙂
Will try #D2 as soon as it lands in #Debian.

https://bugs.debian.org/1111780

I guess, it can be easily integrated into #Emacs by someone who knows #elisp. I.e. not me 😞

#1111780 - ITP: d2 -- diagram scripting language - Debian Bug report logs

  • Copy link
  • Flag this comment
  • Block
RePierre
RePierre
@RePierre@mastodon.social  ·  activity timestamp 5 days ago

@debacle @bbatsov I managed to somewhat make it work with `org-babel` so yes, it can be integrated in Emacs.

I would gladly create a package for this but I have no idea how and where to start.

A screenshot of Emacs showing in the left window an org-mode buffer with a source code block in d2 language, in the upper-right window an elisp function to evaluate the source code in d2 language from the previous window, and in the bottom-right window the output of the d2 source-code block.
A screenshot of Emacs showing in the left window an org-mode buffer with a source code block in d2 language, in the upper-right window an elisp function to evaluate the source code in d2 language from the previous window, and in the bottom-right window the output of the d2 source-code block.
A screenshot of Emacs showing in the left window an org-mode buffer with a source code block in d2 language, in the upper-right window an elisp function to evaluate the source code in d2 language from the previous window, and in the bottom-right window the output of the d2 source-code block.
  • Copy link
  • Flag this comment
  • Block
Bozhidar Batsov (a.k.a. Bug)
Bozhidar Batsov (a.k.a. Bug)
@bbatsov@hachyderm.io  ·  activity timestamp 5 days ago

@RePierre @debacle Seems it also have a couple of major modes - I've learned about d2 when browsing MELPA PRs https://github.com/melpa/melpa/pull/9848 :-)

  • Copy link
  • Flag this comment
  • Block
RePierre
RePierre
@RePierre@mastodon.social  ·  activity timestamp 5 days ago

@bbatsov @debacle looking at the source code I see that it also includes a module for org-babel export/tangling which is really nice. It's definitely worth giving #D2 a try.

  • Copy link
  • Flag this comment
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.2-alpha.34 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Code of Conduct