From eeb363f6e4f8c0d7895f15ef59aae4a759852538 Mon Sep 17 00:00:00 2001 From: Deepu Mohan Puthrote Date: Mon, 12 Jul 2021 16:52:33 +0100 Subject: [PATCH] Add flag to enable org-brain support making it optional --- layers/+emacs/org/README.org | 5 +++-- layers/+emacs/org/config.el | 3 +++ layers/+emacs/org/packages.el | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/layers/+emacs/org/README.org b/layers/+emacs/org/README.org index 94f6654bc..ec87c1f8f 100644 --- a/layers/+emacs/org/README.org +++ b/layers/+emacs/org/README.org @@ -445,8 +445,9 @@ the following snippet. #+END_SRC ** Org-brain support -For Emacs 25 or later, support for [[https://kungsgeten.github.io/org-brain.html][org-brain]] is included. See the [[https://github.com/Kungsgeten/org-brain][org-brain -package documentation]] for more information. +For Emacs 25 or later, to install [[https://kungsgeten.github.io/org-brain.html][org-brain]] set the variable =org-enable-org-brain-support= to =t=. + +See the [[https://github.com/Kungsgeten/org-brain][org-brain package documentation]] for more information. ** Org-roam support To install org-roam support set the variable =org-enable-roam-support= to =t=. diff --git a/layers/+emacs/org/config.el b/layers/+emacs/org/config.el index 832760a11..4468f09f9 100644 --- a/layers/+emacs/org/config.el +++ b/layers/+emacs/org/config.el @@ -119,3 +119,6 @@ If `semiauto', prompt to change entry state when the state of the subentries imply it. This assumes next to nothing about your workflow states, but may result in additional, possibly surprising, prompting of the user; and it has no intelligence to attempt to determine the destination state.") + +(defvar org-enable-org-brain-support nil + "If non-nil, enable org-brain") diff --git a/layers/+emacs/org/packages.el b/layers/+emacs/org/packages.el index 57fede5e6..a326f4277 100644 --- a/layers/+emacs/org/packages.el +++ b/layers/+emacs/org/packages.el @@ -41,7 +41,7 @@ :toggle org-enable-org-contacts-support) org-contrib (org-vcard :toggle org-enable-org-contacts-support) - org-brain + (org-brain :toggle org-enable-org-brain-support) (org-expiry :location built-in) ; temporarily point org-journal to dalanicolai fork until dalanicolai's ; PR's https://github.com/bastibe/org-journal/pulls get merged