[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/olivetti 7c4410f 133/134: Rename olivetti-set-environme
From: |
Stefan Monnier |
Subject: |
[elpa] externals/olivetti 7c4410f 133/134: Rename olivetti-set-environment -> olivetti-set-margins |
Date: |
Thu, 25 Apr 2019 09:57:45 -0400 (EDT) |
branch: externals/olivetti
commit 7c4410f5d8f6c57c32ec400f2c375c25f28c27fa
Author: Paul W. Rankin <address@hidden>
Commit: Paul W. Rankin <address@hidden>
Rename olivetti-set-environment -> olivetti-set-margins
---
olivetti.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index e7e3568..d5421f7 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -167,7 +167,7 @@ exiting. The reverse is not true."
;;; Set Environment
-(defun olivetti-set-environment (&optional frame)
+(defun olivetti-set-margins (&optional frame)
"Set text body width to `olivetti-body-width' with relative margins.
Cycle through all windows displaying current buffer and first
@@ -267,7 +267,7 @@ fraction of the window width."
(read-number "Set text body width (integer or float): "
olivetti-body-width))))
(setq olivetti-body-width n)
- (olivetti-set-environment)
+ (olivetti-set-margins)
(message "Text body width set to %s" olivetti-body-width))
(defun olivetti-expand (&optional arg)
@@ -281,7 +281,7 @@ If prefixed with ARG, incrementally decrease."
((floatp olivetti-body-width)
(+ olivetti-body-width (* 0.01 p))))))
(setq olivetti-body-width (olivetti-safe-width n (selected-window))))
- (olivetti-set-environment)
+ (olivetti-set-margins)
(message "Text body width set to %s" olivetti-body-width)
(set-transient-map
(let ((map (make-sparse-keymap)))
@@ -322,17 +322,17 @@ body width set with `olivetti-body-width'."
(progn
(dolist (hook '(post-command-hook
window-size-change-functions))
- (add-hook hook 'olivetti-set-environment t t))
+ (add-hook hook 'olivetti-set-margins t t))
(add-hook 'change-major-mode-hook
'olivetti-reset-all-windows nil t)
(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))
+ (olivetti-set-margins))
(dolist (hook '(post-command-hook
window-size-change-functions))
- (remove-hook hook 'olivetti-set-environment t))
+ (remove-hook hook 'olivetti-set-margins t))
(olivetti-reset-all-windows)
(when (and olivetti-recall-visual-line-mode-entry-state
(not olivetti--visual-line-mode))
- [elpa] externals/olivetti 46fdcfe 134/134: Assign copyright to Free Software Foundation, (continued)
- [elpa] externals/olivetti 46fdcfe 134/134: Assign copyright to Free Software Foundation, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti a7f6477 118/134: Add LICENSE.txt, remove README license badge, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 18a9a8e 071/134: Use min-margins instead of split-window-right-force, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 050815f 113/134: Use internal rounding for olivetti-safe-width, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti da7955a 088/134: Added TODO.md, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 914af43 096/134: Update copyright year to add 2017, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti e824a21 106/134: Remove disparaging remarks about display-line-numbers-mode, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti da1ef8e 114/134: Improving olivetti-safe-width, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti d40a054 126/134: Fixed olivetti-scale-width for integer heights, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 2ae21fa 128/134: Remove redundant turn-on-olivetti-mode function, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 7c4410f 133/134: Rename olivetti-set-environment -> olivetti-set-margins,
Stefan Monnier <=
- [elpa] externals/olivetti 40c64f9 131/134: Remove window-configuration-change-hook, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 26f3db0 050/134: Updated README/Commentary, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 66bdcc7 057/134: lexical-binding: t, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti f53b5f4 062/134: Added mode-map, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti ce4c9f0 068/134: Document split-window-right workaround, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 9d318be 069/134: Added README to Commentary, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti d2c54ac 072/134: Add change-major-mode-hook to reset margins, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 5ac4444 085/134: Use GitHub repo screenshot, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti cefceed 089/134: Added note about buggy display-line-numbers-mode, Stefan Monnier, 2019/04/25
- [elpa] externals/olivetti 9d9f9ce 090/134: Added hints, Stefan Monnier, 2019/04/25