branch: master commit c6e0c3a619fc409e5eb24a289715129bad4e29b3 Author: Joao Tavora <joaotav...@gmail.com> Commit: Joao Tavora <joaotav...@gmail.com>
Leave darkroom-mode when leaving tentative-mode * darkroom.el (darkroom-tentative-mode): Leave minor mode as well when leaving tentative-mode. --- darkroom.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/darkroom.el b/darkroom.el index da4882a..4e9f02b 100644 --- a/darkroom.el +++ b/darkroom.el @@ -136,7 +136,7 @@ changing window or by calling `darkroom-set-margins'") (add-hook 'window-configuration-change-hook 'darkroom-maybe-enable nil t) (darkroom-maybe-enable)) (t - (darkroom-maybe-enable) + (if darkroom-mode (darkroom-mode -1)) (remove-hook 'window-configuration-change-hook 'darkroom-maybe-enable t))))