emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/olivetti 7f8e44b 061/134: Custom lighter


From: Stefan Monnier
Subject: [elpa] externals/olivetti 7f8e44b 061/134: Custom lighter
Date: Thu, 25 Apr 2019 09:57:29 -0400 (EDT)

branch: externals/olivetti
commit 7f8e44b63f8da8f6c7af727cea47a6a6bcb57f0e
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>

    Custom lighter
---
 olivetti.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/olivetti.el b/olivetti.el
index 7447ce0..442397f 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -121,6 +121,12 @@ This option does not affect file contents."
   :type 'boolean
   :group 'olivetti)
 
+(defcustom olivetti-lighter
+  " Olv"
+  "Mode-line indicator for `olivetti-mode'."
+  :type '(choice (const :tag "No lighter" "") string)
+  :group 'olivetti)
+
 (defcustom olivetti-recall-visual-line-mode-entry-state
   t
   "Recall the state of `visual-line-mode' upon exiting.
@@ -285,9 +291,9 @@ body width set with `olivetti-body-width'.
 When `olivetti-hide-mode-line' is non-nil, the mode line is also
 hidden."
   :init-value nil
-  :lighter " Olv"
   :keymap '(([?\C-c ?\[] . olivetti-shrink)
             ([?\C-c ?\]] . olivetti-expand))
+  :lighter olivetti-lighter
   (if olivetti-mode
       (progn
         (add-hook 'window-configuration-change-hook



reply via email to

[Prev in Thread] Current Thread [Next in Thread]