From 966edfcb64bb4e8330e930d06747646e15b7dbc5 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 13 Sep 2016 19:07:14 +0200 Subject: init: Only enable org-bullets-mode if available --- init.d/main.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/main.org b/init.d/main.org index a3efc99..2a16320 100644 --- a/init.d/main.org +++ b/init.d/main.org @@ -1973,7 +1973,6 @@ possibility to disable it on a per-file basis with "Enable org-bullets if `alex/org-startup-with-bullets' is not-nil." (when alex/org-startup-with-bullets (org-bullets-mode 1))) - (add-hook 'org-mode-hook 'alex/org-bullets-setup) (setq org-startup-options (append org-startup-options @@ -1981,6 +1980,9 @@ possibility to disable it on a per-file basis with ("nobullets" org-startup-with-bullets nil)))) (use-package org-bullets + :if-installed t + :init + (add-hook 'org-mode-hook 'alex/org-bullets-setup) :commands (org-bullets-mode)) #+end_src -- cgit v1.2.3