[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/olivetti 947b1c0 044/134: Custom option to recall visua
From: |
Stefan Monnier |
Subject: |
[elpa] externals/olivetti 947b1c0 044/134: Custom option to recall visual-line-mode entry state |
Date: |
Thu, 25 Apr 2019 09:57:25 -0400 (EDT) |
branch: externals/olivetti
commit 947b1c0498c3a1e265991bf228f3b1bb66addeee
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>
Custom option to recall visual-line-mode entry state
---
olivetti.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/olivetti.el b/olivetti.el
index 3fa4856..32828b3 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -114,6 +114,13 @@ This option does not affect file contents."
(defcustom olivetti-hide-mode-line nil
"Hide the mode line.
Can cause display issues in console mode."
+(defcustom olivetti-recall-visual-line-mode-entry-state
+ t
+ "Recall the state of `visual-line-mode' upon exiting.
+
+When non-nil, if `visual-line-mode' is inactive upon activating
+`olivetti-mode', then `visual-line-mode' will be deactivated upon
+exiting. The reverse is not true."
:type 'boolean
:group 'olivetti)
@@ -276,6 +283,9 @@ hidden."
'olivetti-set-environment t)
(remove-hook 'text-scale-mode-hook
'olivetti-set-environment t)))
+ (if (and olivetti-recall-visual-line-mode-entry-state
+ (null olivetti--visual-line-mode))
+ (visual-line-mode 0))
(provide 'olivetti)
;;; olivetti.el ends here
- [elpa] externals/olivetti 554461c 012/134: Added toggle-hide-modeline, (continued)
- [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, 2019/04/25
- [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 <=
- [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
- [elpa] externals/olivetti be11f32 055/134: Fixing typo, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti bb2e0cf 056/134: set-temporary-overlay-map -> set-transient-map, Stefan Monnier, 2019/04/25