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

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

[elpa] externals/logos 60f7eaf5f7 13/25: Update Commentary with code sam


From: ELPA Syncer
Subject: [elpa] externals/logos 60f7eaf5f7 13/25: Update Commentary with code sample for Org/Outline
Date: Fri, 11 Mar 2022 08:58:01 -0500 (EST)

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

    Update Commentary with code sample for Org/Outline
---
 logos.el | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/logos.el b/logos.el
index 588c45a91c..12fbae7373 100644
--- a/logos.el
+++ b/logos.el
@@ -65,6 +65,22 @@
 ;;     
 ;;     (add-hook 'logos-focus-mode-hook #'my-logos--olivetti-mode)
 ;;
+;; To automatically expand contracted Org/Outline headings, use
+;; something like:
+;;
+;;     (defun my-logos--reveal ()
+;;       "Reveal Org or Outline entry."
+;;       (cond
+;;        ((and (eq major-mode 'org-mode)
+;;              (org-at-heading-p))
+;;         (org-show-entry)
+;;         (org-reveal t))
+;;        ((or (bound-and-true-p prot-outline-minor-mode)
+;;             (bound-and-true-p outline-minor-mode))
+;;         (outline-show-entry))))
+;;     
+;;     (add-hook 'logos-page-motion-hook #'my-logos--reveal)
+;;
 ;; Logos is the familiar word derived from Greek (watch my presentation
 ;; on philosophy about Cosmos, Logos, and the living universe:
 ;; <https://protesilaos.com/books/2022-02-05-cosmos-logos-living-universe/>),



reply via email to

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