branch: externals/olivetti
commit 2ae21fa9fda463369a7b16cc7f4fbe0327064f33
Author: Paul W. Rankin <[email protected]>
Commit: Paul W. Rankin <[email protected]>
Remove redundant turn-on-olivetti-mode function
---
olivetti.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/olivetti.el b/olivetti.el
index 16c177f..9c942ad 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -350,12 +350,6 @@ If prefixed with ARG, incrementally increase."
;;; Mode Definition
-;;;###autoload
-(defun turn-on-olivetti-mode ()
- "Turn on `olivetti-mode' unconditionally."
- (interactive)
- (olivetti-mode 1))
-
(defvar olivetti-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c [") #'olivetti-shrink)
@@ -364,6 +358,9 @@ If prefixed with ARG, incrementally increase."
map)
"Mode map for `olivetti-mode'.")
+(define-obsolete-function-alias 'turn-on-olivetti-mode
+ 'olivetti-mode "1.6.2")
+
;;;###autoload
(define-minor-mode olivetti-mode
"Olivetti provides a nice writing environment.