branch: externals/olivetti
commit fc3b045185b0f819236b719abbe9cf0f2e6d52a4
Author: Paul Rankin <[email protected]>
Commit: Paul Rankin <[email protected]>
Readded window-configuration-change-hook
---
olivetti.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/olivetti.el b/olivetti.el
index 1af0d6b..7488f39 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -375,6 +375,7 @@ hidden."
(if olivetti-mode
(progn
(dolist (hook '(post-command-hook
+ window-configuration-change-hook
window-size-change-functions))
(add-hook hook 'olivetti-set-environment t t))
(add-hook 'change-major-mode-hook
@@ -385,6 +386,7 @@ hidden."
(unless olivetti--visual-line-mode (visual-line-mode 1))
(olivetti-set-environment))
(dolist (hook '(post-command-hook
+ window-configuration-change-hook
window-size-change-functions))
(remove-hook hook 'olivetti-set-environment t))
(olivetti-reset-all-windows)