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

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

[elpa] externals/olivetti bb7b2ce 007/134: Doc cleanup


From: Stefan Monnier
Subject: [elpa] externals/olivetti bb7b2ce 007/134: Doc cleanup
Date: Thu, 25 Apr 2019 09:57:14 -0400 (EDT)

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

    Doc cleanup
---
 olivetti.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/olivetti.el b/olivetti.el
index 4479e00..311d93e 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -27,9 +27,7 @@
 (defgroup olivetti ()
   "Minor mode for a nice writing environment"
   :prefix "olivetti-"
-  :group 'wp
-  :group 'fountain
-  :group 'markdown)
+  :group 'wp)
 
 ;;; customizable variables =============================================
 
@@ -60,8 +58,7 @@ This option does not affect file contents."
 
 (defcustom olivetti-hide-mode-line nil
   "Hide the mode line.
-Default is nil because this can cause display issues in console
-mode."
+Can cause display issues in console mode."
   :type 'boolean
   :group 'olivetti)
 
@@ -73,7 +70,11 @@ mode."
 ;;; functions ==========================================================
 
 (defun olivetti-set-mode-line (&optional arg)
-  (interactive)
+  "Set the mode line formating appropriately.
+If ARG is 'toggle, toggle the value of `olivetti-hide-mode-line',
+then rerun. If ARG is 'exit, kill `mode-line-format' then rerun.
+If ARG is nil and `olivetti-hide-mode-line' is non-nil, hide the
+mode line. Finally redraw the frame."
   (cond ((equal arg 'toggle)
          (setq olivetti-hide-mode-line
                (null olivetti-hide-mode-line))



reply via email to

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