[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/olivetti 7b215a7 037/134: Fixes #7
From: |
Stefan Monnier |
Subject: |
[elpa] externals/olivetti 7b215a7 037/134: Fixes #7 |
Date: |
Thu, 25 Apr 2019 09:57:23 -0400 (EDT) |
branch: externals/olivetti
commit 7b215a75eb9f829084626cfccd18cde777fbec55
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>
Fixes #7
---
olivetti.el | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/olivetti.el b/olivetti.el
index f32e3ed..b9cd3b2 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -117,6 +117,13 @@ Can cause display issues in console mode."
:type 'boolean
:group 'olivetti)
+;;; Variables
==================================================================
+
+(defvar olivetti--visual-line-mode
+ nil
+ "Non-nil if `visual-line-mode' is active when `olivetti-mode' is turned on.")
+(make-variable-buffer-local 'olivetti--visual-line-mode)
+
;;; Functions ==========================================================
(defun olivetti-set-mode-line (&optional arg)
@@ -249,10 +256,15 @@ hidden."
'olivetti-set-environment nil t)
(add-hook 'text-scale-mode-hook
'olivetti-set-environment nil t)
- (visual-line-mode 1)
+ (setq olivetti--visual-line-mode visual-line-mode)
+ (unless olivetti--visual-line-mode
+ (visual-line-mode 1))
(olivetti-set-environment))
(olivetti-set-mode-line 'exit)
(set-window-margins nil nil)
+ (unless olivetti--visual-line-mode
+ (visual-line-mode 0))
+ (kill-local-variable 'olivetti--visual-line-mode)
(remove-hook 'window-configuration-change-hook
'olivetti-set-environment t)
(remove-hook 'after-setting-font-hook
- [elpa] externals/olivetti 869221a 013/134: Removed delete-selection-mode, (continued)
- [elpa] externals/olivetti 869221a 013/134: Removed delete-selection-mode, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti ea4a25f 011/134: Obsessive cleanliness, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 554461c 012/134: Added toggle-hide-modeline, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti f213afd 017/134: Added safe-width fun, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 906974e 031/134: Fixes #5, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 30b82ff 018/134: Made body-width buffer-local, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti e0dabc0 024/134: Obsessive cleanliness, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 4252fe4 026/134: Deleted unneeded .gitignore, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti b42eb3e 029/134: Allow set-width to accept any number, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 34b8a54 032/134: Added doc string, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 7b215a7 037/134: Fixes #7,
Stefan Monnier <=
- [elpa] externals/olivetti 41c6642 039/134: Update MELPA URL, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 947b1c0 044/134: Custom option to recall visual-line-mode entry state, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 0653b07 043/134: Make olivetti-set-environment act on the list of all buffer windows, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 42d5822 048/134: Add keymap, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 6a8f400 021/134: Added set-width interactive fun, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 3c60908 023/134: Made set-environment use safe-width, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 4bec5f2 022/134: Added expand/shrink interactive funs, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti bd24fae 027/134: Removed erroneous mode-hook, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 99a8b3d 034/134: Changed email, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti bd672e5 052/134: Make it easier to adjust olivetti-body-width, Stefan Monnier, 2019/04/25