From a44b8475968ec5bf11aa43b55467b1b7236a2c96 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Fri, 13 Mar 2020 13:37:55 +0800 Subject: [PATCH] (docs): add documentation for using neato (#291) Some prefer using neato for generating a graph (ref #263). This documents how to do so. --- doc/configuration.md | 7 +++++++ org-roam.el | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/configuration.md b/doc/configuration.md index dfd0ee6..4ddcfd8 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -101,6 +101,13 @@ Org-roam tries its best to locate the Graphviz executable from your (setq org-roam-graphviz-executable "/path/to/dot") ``` +You may also choose to use `neato` in place of `dot`, which generates a more compact graph layout. + +``` +(setq org-roam-graphviz-executable "/path/to/neato") +(setq org-roam-graphviz-extra-options '(("overlap" . "false"))) +``` + Org-roam also attempts to use Firefox (located on `PATH`) to view the SVG, you may choose to set it to any compatible program: diff --git a/org-roam.el b/org-roam.el index 0123426..009550c 100644 --- a/org-roam.el +++ b/org-roam.el @@ -1278,8 +1278,6 @@ into a digraph." If PREFIX, then the graph is generated but the viewer is not invoked." (interactive "P") (declare (indent 0)) - (unless org-roam-graphviz-executable - (setq org-roam-graphviz-executable (executable-find "dot"))) (unless org-roam-graphviz-executable (user-error "Can't find graphviz executable. Please check if it is in your path")) (let ((temp-dot (expand-file-name "graph.dot" temporary-file-directory))