Do not enable olivetti-mode on org-tree-slide-mode by default

Usually, no extra spacing is needed because org-tree-slides are shown with increased face size, such
that the whole width is necessary.
This commit is contained in:
Daniel Borchmann 2025-06-20 16:12:05 +02:00
parent f865ec138e
commit b38b2ede6a
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

13
init.el
View File

@ -601,15 +601,6 @@ split horizontally again, but this extra work should not matter much."
(use-package olivetti (use-package olivetti
:ensure t :ensure t
:commands (olivetti-mode) :commands (olivetti-mode)
:preface (progn
(defun turn-on-olivetti-mode ()
"Turn on `olivetti-mode'."
(interactive)
(olivetti-mode 1))
(defun turn-off-olivetti-mode ()
"Turn off `olivetti-mode'."
(interactive)
(olivetti-mode -1)))
:init (setq-default olivetti-body-width 0.618034)) :init (setq-default olivetti-body-width 0.618034))
(use-package outline (use-package outline
@ -1480,9 +1471,7 @@ accordingly."
:bind (:map org-tree-slide-mode-map :bind (:map org-tree-slide-mode-map
("<C-down>" . org-tree-slide-display-header-toggle) ("<C-down>" . org-tree-slide-display-header-toggle)
("<C-right>" . org-tree-slide-move-next-tree) ("<C-right>" . org-tree-slide-move-next-tree)
("<C-left>" . org-tree-slide-move-previous-tree)) ("<C-left>" . org-tree-slide-move-previous-tree)))
:hook ((org-tree-slide-play . turn-on-olivetti-mode)
(org-tree-slide-stop . turn-off-olivetti-mode)))
(use-package org-roam (use-package org-roam
:init (progn :init (progn