Skip to content

Commit 7d18397

Browse files
tecosaurHenrik Lissner
authored and
Henrik Lissner
committed
tweak(org-mode): simplify dot snippet
1. ":exports none :results silent" + link to file is pointlessly clunky. Just having ":results file graphics" is briefer and even works better. 2. ":cmdline -T${format}" is largely unneeded, as type is selected based on the file extension by default, which tends to result in behaviour 3. Change the default format to SVG. Org can be exported to a variety of formats, and SVG is more versatile in this respect.
1 parent cc26b6b commit 7d18397

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

org-mode/dot

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# key: dot
44
# uuid: dot
55
# --
6-
#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent
6+
#+begin_src dot :file ${1:file}.${2:svg} :results file graphics
77
`%`$0
8-
#+end_src
9-
10-
[[file:$1]]
8+
#+end_src

0 commit comments

Comments
 (0)