Added mermaidjs support to orgmode

This commit is contained in:
James Patrick 2023-02-12 17:53:15 -05:00
parent 73b233b04b
commit 889b0e3cae
2 changed files with 17 additions and 2 deletions

View File

@ -63,13 +63,18 @@ NOTE: unless you explicitly turn off the named code block will be tangled into =
** Configuration ** Configuration
*** Lexical Bindings *** Lexical Bindings
There [[https://nullprogram.com/blog/2016/12/22/][minor but non-zero start time benefits]] for using Lexical Bindings comments. All files created should start with There [[https://nullprogram.com/blog/2016/12/22/][minor but non-zero start time benefits]] for using Lexical Bindings comments. All files created should start with
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;;; config.el -*- lexical-binding: t; -*- ;;; config.el -*- lexical-binding: t; -*-
#+END_SRC #+END_SRC
replace =config.el= with the filename being loaded. replace =config.el= with the filename being loaded.
**** =packages.el=
Also go a head and add this to the =packages.el=
#+BEGIN_SRC emacs-lisp :tangle "packages.el"
;;; packages.el -*- lexical-binding: t; -*-
#+END_SRC
*** Warn user to modify =*.el= files directly. *** Warn user to modify =*.el= files directly.
#+name:modification-warning #+name:modification-warning
@ -751,9 +756,16 @@ I use =org-roam= v2 for most of my note taking. TODO expand this section.
("Goals"))))) ("Goals")))))
#+end_src #+end_src
**** Keybinds **** Keybinds
These were declared in [[id:f9ffe9df-a417-45c4-8bf2-6ee655140648][Roam Keybinds]] section above. See there for more details. These were declared in [[id:f9ffe9df-a417-45c4-8bf2-6ee655140648][Roam Keybinds]] section above. See there for more details.
*** Mermaid
[[https://mermaid.js.org/][MermaidJS]] is a diagramming and charting tool similar to Dot/Graphviz, but significantly prettier with less boilerplate. We'll likely only ever want to modify it in the context of =org-mode= so we'll want [[https://github.com/arnm/ob-mermaid][ob-mermaid]].
Add the following the =packages.el=
#+begin_src emacs-lisp :tangle "packages.el" :noweb no-export :comments no :results output silent
(package! ob-mermaid)
#+end_src
*** Babel stuff *** Babel stuff
Babel execute can be tweaked per the syntax see orgmode docs [[https://orgmode.org/manual/Evaluating-Code-Blocks.html][here]]. Babel execute can be tweaked per the syntax see orgmode docs [[https://orgmode.org/manual/Evaluating-Code-Blocks.html][here]].

View File

@ -0,0 +1,3 @@
;;; packages.el -*- lexical-binding: t; -*-
(package! ob-mermaid)