[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/logos 804f39e21e 03/25: Make the "focus mode" variables
From: |
ELPA Syncer |
Subject: |
[elpa] externals/logos 804f39e21e 03/25: Make the "focus mode" variables local |
Date: |
Fri, 11 Mar 2022 08:58:00 -0500 (EST) |
branch: externals/logos
commit 804f39e21ebc33f509a57e613480abffda145c81
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make the "focus mode" variables local
---
README.org | 3 ++-
logos.el | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 826adad3f0..b393d65a81 100644
--- a/README.org
+++ b/README.org
@@ -101,7 +101,8 @@ Logos provides some optional aesthetic tweaks which come
into effect
when the buffer-local ~logos-focus-mode~ is enabled. These will hide
the mode line (~logos-hide-mode-line~), enable ~scroll-lock-mode~
(~logos-scroll-lock~), and use ~variable-pitch-mode~ in non-programming
-buffers (~logos-variable-pitch~).
+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.
diff --git a/logos.el b/logos.el
index 372529e8d9..ff428cbffa 100644
--- a/logos.el
+++ b/logos.el
@@ -97,6 +97,7 @@ This is only relevant when `logos-focus-mode' is enabled."
:type 'boolean
:group 'logos)
+(make-variable-buffer-local 'logos-hide-mode-line)
(defcustom logos-scroll-lock nil
"When non-nil, use `scroll-lock-mode'.
@@ -104,6 +105,8 @@ This is only relevant when `logos-focus-mode' is enabled."
:type 'boolean
:group 'logos)
+(make-variable-buffer-local 'logos-scroll-lock)
+
(defcustom logos-variable-pitch nil
"When non-nil, `text-mode' buffers use `variable-pitch-mode'.
In programming modes the default font is always used, as that is
@@ -113,6 +116,8 @@ This is only relevant when `logos-focus-mode' is enabled."
:type 'boolean
:group 'logos)
+(make-variable-buffer-local 'logos-variable-pitch)
+
;;;; General utilities
(defun logos--focus-p ()
- [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 <=
- [elpa] externals/logos d41217e007 05/25: Tweak documentation and Commentary, ELPA Syncer, 2022/03/11
- [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