branch: externals/olivetti
commit 40c64f94414eb0e74267124f4a51cb5f78b2ded7
Author: Paul W. Rankin <[email protected]>
Commit: Paul W. Rankin <[email protected]>
Remove window-configuration-change-hook
---
olivetti.el | 3 ---
1 file changed, 3 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index 10f6e5a..bc1d051 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -232,7 +232,6 @@ if it is an integer, and otherwise scale by 1."
((floatp height) (* n height))
(t n))))
-
(defun olivetti-safe-width (width window)
"Parse WIDTH to a safe value for `olivetti-body-width' for WINDOW.
@@ -320,7 +319,6 @@ body width set with `olivetti-body-width'."
(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
@@ -331,7 +329,6 @@ body width set with `olivetti-body-width'."
(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)