branch: externals/olivetti
commit cdc9fc360e79f73681f2b474562b93601efa8512
Merge: 35654fe 66bdcc7
Author: Paul Rankin <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #11 from rnkn/lexical-binding
Adding lexical binding and some fixes
---
olivetti.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index e79f955..ff91171 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -1,4 +1,4 @@
-;;; olivetti.el --- Minor mode for a nice writing environment
+;;; olivetti.el --- Minor mode for a nice writing environment -*-
lexical-binding: t; -*-
;; Copyright (c) 2014-2016 Paul Rankin
@@ -254,13 +254,13 @@ If prefixed with ARG, incrementally decrease."
(setq olivetti-body-width (olivetti-safe-width n)))
(olivetti-set-environment)
(message "Text body width set to %s" olivetti-body-width)
- (set-temporary-overlay-map
+ (set-transient-map
(let ((map (make-sparse-keymap)))
(define-key map "]" 'olivetti-expand)
(define-key map "[" 'olivetti-shrink) map)))
(defun olivetti-shrink (&optional arg)
- "incrementally decrease the value of `olivetti-body-width'.
+ "Incrementally decrease the value of `olivetti-body-width'.
If prefixed with ARG, incrementally increase."
(interactive "P")