[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/logos d41217e007 05/25: Tweak documentation and Comment
From: |
ELPA Syncer |
Subject: |
[elpa] externals/logos d41217e007 05/25: Tweak documentation and Commentary |
Date: |
Fri, 11 Mar 2022 08:58:00 -0500 (EST) |
branch: externals/logos
commit d41217e007550ad57def82e30ac64df3be150c4b
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak documentation and Commentary
---
README.org | 14 +++++++++++++-
logos.el | 19 ++++++++++++++-----
2 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/README.org b/README.org
index b393d65a81..c21035586e 100644
--- a/README.org
+++ b/README.org
@@ -105,7 +105,19 @@ buffers (~logos-variable-pitch~). All these variables are
buffer-local.
To position the buffer in the center of the window, use the =olivetti=
-package by Paul W. Rankin.
+package by Paul W. Rankin. Sample glue code:
+
+#+begin_src emacs-lisp
+;; glue code for `logos-focus-mode' and `olivetti-mode'
+(defun my-logos--olivetti-mode ()
+ "Toggle `olivetti-mode'."
+ (if (or (bound-and-true-p olivetti-mode)
+ (null (logos--focus-p)))
+ (olivetti-mode -1)
+ (olivetti-mode 1)))
+
+(add-hook 'logos-focus-mode-hook #'my-logos--olivetti-mode)
+#+end_src
Logos is the familiar word derived from Greek (watch my presentation on
philosophy about Cosmos, Logos, and the living universe:
diff --git a/logos.el b/logos.el
index 653c0e7ea0..9bcaa59d7b 100644
--- a/logos.el
+++ b/logos.el
@@ -37,10 +37,10 @@
;; Logos does not define any key bindings. Try something like this, if
;; you want:
;;
-;; (let ((map global-map))
-;; (define-key map [remap narrow-to-region] #'logos-narrow-dwim)
-;; (define-key map [remap forward-page] #'logos-forward-page-dwim)
-;; (define-key map [remap backward-page] #'logos-backward-page-dwim))
+;; (let ((map global-map))
+;; (define-key map [remap narrow-to-region] #'logos-narrow-dwim)
+;; (define-key map [remap forward-page] #'logos-forward-page-dwim)
+;; (define-key map [remap backward-page] #'logos-backward-page-dwim))
;;
;; By default those key bindings are: C-x n n, C-x ], C-x [. The
;; `logos-narrow-dwim' is not necessary if you already know how to
@@ -54,7 +54,16 @@
;; variables are buffer-local.
;;
;; To position the buffer in the center of the window, use the
-;; `olivetti' package by Paul W. Rankin.
+;; `olivetti' package by Paul W. Rankin. Sample glue code:
+;;
+;; (defun my-logos--olivetti-mode ()
+;; "Toggle `olivetti-mode'."
+;; (if (or (bound-and-true-p olivetti-mode)
+;; (null (logos--focus-p)))
+;; (olivetti-mode -1)
+;; (olivetti-mode 1)))
+;;
+;; (add-hook 'logos-focus-mode-hook #'my-logos--olivetti-mode)
;;
;; Logos is the familiar word derived from Greek (watch my presentation
;; on philosophy about Cosmos, Logos, and the living universe:
- [elpa] branch externals/logos created (now dc52fc3f04), ELPA Syncer, 2022/03/11
- [elpa] externals/logos 804f39e21e 03/25: Make the "focus mode" variables local, ELPA Syncer, 2022/03/11
- [elpa] externals/logos d41217e007 05/25: Tweak documentation and Commentary,
ELPA Syncer <=
- [elpa] externals/logos c0a2074a85 01/25: Initial commit for logos.el and related, ELPA Syncer, 2022/03/11
- [elpa] externals/logos f03cf3ebd9 06/25: Fix fallback value of logos-outline-regexp-alist, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 7f5010f3a0 10/25: Add Org/Outline reveal sample; update docs, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 60f7eaf5f7 13/25: Update Commentary with code sample for Org/Outline, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 95000cf597 04/25: Minor rewording in the Commentary, ELPA Syncer, 2022/03/11
- [elpa] externals/logos bbc89495e3 08/25: Add section with sample configuration, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 28e2d2ae27 12/25: Reword comment, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 07cd1b412f 17/25: Update sample code for outline-mode, ELPA Syncer, 2022/03/11
- [elpa] externals/logos a63d1ab315 20/25: Always reveal Org/Outline entry, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 26ecd9b72f 22/25: Update description, ELPA Syncer, 2022/03/11