From b38b2ede6a4ac56fa2d4c2befda081909e59eeeb Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 20 Jun 2025 16:12:05 +0200 Subject: [PATCH] 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. --- init.el | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/init.el b/init.el index e5fcc12..b8e283d 100644 --- a/init.el +++ b/init.el @@ -601,15 +601,6 @@ split horizontally again, but this extra work should not matter much." (use-package olivetti :ensure t :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)) (use-package outline @@ -1480,9 +1471,7 @@ accordingly." :bind (:map org-tree-slide-mode-map ("" . org-tree-slide-display-header-toggle) ("" . org-tree-slide-move-next-tree) - ("" . org-tree-slide-move-previous-tree)) - :hook ((org-tree-slide-play . turn-on-olivetti-mode) - (org-tree-slide-stop . turn-off-olivetti-mode))) + ("" . org-tree-slide-move-previous-tree))) (use-package org-roam :init (progn