branch: externals/olivetti commit 7f8e44b63f8da8f6c7af727cea47a6a6bcb57f0e Author: Paul Rankin <he...@paulwrankin.com> Commit: Paul Rankin <he...@paulwrankin.com>
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