Added mermaidjs support to orgmode
This commit is contained in:
parent
73b233b04b
commit
889b0e3cae
|
@ -63,13 +63,18 @@ NOTE: unless you explicitly turn off the named code block will be tangled into =
|
|||
** Configuration
|
||||
*** 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
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;;; config.el -*- lexical-binding: t; -*-
|
||||
#+END_SRC
|
||||
|
||||
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.
|
||||
|
||||
#+name:modification-warning
|
||||
|
@ -751,9 +756,16 @@ I use =org-roam= v2 for most of my note taking. TODO expand this section.
|
|||
("Goals")))))
|
||||
#+end_src
|
||||
|
||||
|
||||
**** Keybinds
|
||||
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 execute can be tweaked per the syntax see orgmode docs [[https://orgmode.org/manual/Evaluating-Code-Blocks.html][here]].
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
;;; packages.el -*- lexical-binding: t; -*-
|
||||
|
||||
(package! ob-mermaid)
|
Loading…
Reference in New Issue
Block a user