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

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

[elpa] externals/logos 23ff4461e0: Clarify docs about org-indent-mode


From: ELPA Syncer
Subject: [elpa] externals/logos 23ff4461e0: Clarify docs about org-indent-mode
Date: Sat, 4 Jun 2022 08:57:44 -0400 (EDT)

branch: externals/logos
commit 23ff4461e0a7c141b287ab3645d5df0bc6aaab94
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Clarify docs about org-indent-mode
---
 README.org | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/README.org b/README.org
index 64edc1ec2c..a959791271 100644
--- a/README.org
+++ b/README.org
@@ -462,6 +462,21 @@ extend the functionality of ~logos-focus-mode~ at the user 
level
 (add-hook 'logos-focus-mode-extra-functions #'my-logos-org-indent)
 #+end_src
 
+The ~my-logos-org-indent~ variable lets the user opt in and out of this
+feature, by setting it to t or nil, respectively.  If such a toggle is
+not needed, the following will suffice:
+
+#+begin_src emacs-lisp
+(defun my-logos-org-indent ()
+  "Set `my-logos-org-indent' in `logos-focus-mode'."
+  ;; Disable `org-indent-mode' when `logos-focus-mode' is enabled and
+  ;; restore it when `logos-focus-mode' is disabled.  The
+  ;; `logos--mode' function takes care of the technicalities.
+  (logos--mode 'org-indent-mode -1))
+
+(add-hook 'logos-focus-mode-extra-functions #'my-logos-org-indent)
+#+end_src
+
 * Acknowledgements
 :PROPERTIES:
 :CUSTOM_ID: h:300c12cb-853e-4e06-9627-e1d6fd3a3a38



reply via email to

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