summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-09-13 19:07:14 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-09-13 19:08:02 +0200
commit966edfcb64bb4e8330e930d06747646e15b7dbc5 (patch)
treefe9d4f42d97255eed1b9fe373cec98b1257dc498
parentd835d8bf8c1fa2158aa34fd4d99e9fdd3449c593 (diff)
downloademacs-966edfcb64bb4e8330e930d06747646e15b7dbc5.tar.gz
emacs-966edfcb64bb4e8330e930d06747646e15b7dbc5.tar.xz
emacs-966edfcb64bb4e8330e930d06747646e15b7dbc5.zip
init: Only enable org-bullets-mode if available
-rw-r--r--init.d/main.org4
1 files changed, 3 insertions, 1 deletions
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