[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/olivetti 696c195 080/134: Fixed window splitting
From: |
Stefan Monnier |
Subject: |
[elpa] externals/olivetti 696c195 080/134: Fixed window splitting |
Date: |
Thu, 25 Apr 2019 09:57:33 -0400 (EDT) |
branch: externals/olivetti
commit 696c19550f50e1960327e007750c4b80bd3f14bf
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>
Fixed window splitting
---
olivetti.el | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index ab52f4b..99c3f4b 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -181,7 +181,7 @@ window parameter `split-window' to nil. Then reset the
window
margins to nil."
(dolist (window (get-buffer-window-list nil nil t))
(set-window-parameter window 'split-window nil)
- (set-window-margins window nil nil)))
+ (set-window-margins window nil)))
(defun olivetti-split-window (&optional window size side pixelwise)
"Safely split the window by first resetting the environment.
@@ -191,14 +191,12 @@ First call `olivetti-reset-environment' then try
If `olivetti-mode' is non-nil, call `olivetti-set-environment'."
(olivetti-reset-environment)
- (split-window window size side pixelwise)
- (if olivetti-mode (olivetti-set-environment)))
+ (split-window window size side pixelwise))
(defun olivetti-split-window-sensibly (&optional window)
"Like `olivetti-split-window' but calls `split-window-sensibly'."
(olivetti-reset-environment)
- (split-window-sensibly window)
- (if olivetti-mode (olivetti-set-environment)))
+ (split-window-sensibly window))
;;; Set Mode-Line
@@ -345,8 +343,8 @@ 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))
(olivetti-set-environment))
- [elpa] externals/olivetti 35654fe 054/134: Added note about temporary-overlay-map, (continued)
- [elpa] externals/olivetti 35654fe 054/134: Added note about temporary-overlay-map, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti d4fdf91 059/134: Fix for Emacs lexical binding standard-value bug, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti cdc9fc3 058/134: Merge pull request #11 from rnkn/lexical-binding, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti e095ee34 060/134: Function quoting, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti b4094d3 066/134: Added badges, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 3d057a5 073/134: Removed useless (let ...), Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 8556abb 078/134: Rearranging code for clarity, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti ff058b9 084/134: new file: screenshots/01.png, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 9bd4108 091/134: Compatibility fixes for Emacs 26, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti cba0d25 076/134: user-error for bad olivetti-body-width, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 696c195 080/134: Fixed window splitting,
Stefan Monnier <=
- [elpa] externals/olivetti e9feab0 087/134: Remove H1 from README/Commentary, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 21f8356 086/134: Updated README/Commentary, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti df2477e 093/134: Fix README typo, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 2b202b4 098/134: Fix spelling error in description, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 1629f89 102/134: Always find window on all frames, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti c87a7ec 100/134: Merge pull request #17 from sten0/master, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti cab3aa3 095/134: Add headers for ELPA version, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 2e92258 103/134: Consider fringe width in current window when setting environment, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti cd2fdca 101/134: Added alt recommendation for writeroom-mode, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 4344261 109/134: Don't round olivetti-scale-width, Stefan Monnier, 2019/04/25