branch: externals/olivetti
commit 1553934954ea47e4d2de676c42324ed4790cfd14
Author: Paul Rankin <[email protected]>
Commit: Paul Rankin <[email protected]>
Move hide-mode-line into set-environment
This makes sure the mode line is hidden even when global-eldoc-mode is
on.
---
olivetti.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index dc70db6..ab52f4b 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -170,7 +170,8 @@ care that the maximum size is 0."
2))
0)))
(set-window-parameter window 'split-window 'olivetti-split-window)
- (set-window-margins window margin margin))))
+ (set-window-margins window margin margin))
+ (if olivetti-hide-mode-line (olivetti-set-mode-line))))
(defun olivetti-reset-environment ()
"Remove Olivetti's parameters and margins.
@@ -344,11 +345,10 @@ hidden."
(add-hook hook 'olivetti-set-environment t t))
(add-hook 'change-major-mode-hook
'olivetti-reset-environment nil t)
- (setq-local split-window-preferred-function
- 'olivetti-split-window-sensibly)
+ ;; (setq-local split-window-preferred-function
+ ;; 'olivetti-split-window-sensibly)
(setq olivetti--visual-line-mode visual-line-mode)
(unless olivetti--visual-line-mode (visual-line-mode 1))
- (if olivetti-hide-mode-line (olivetti-set-mode-line))
(olivetti-set-environment))
(dolist (hook '(window-configuration-change-hook
after-setting-font-hook