branch: externals/logos commit 804f39e21ebc33f509a57e613480abffda145c81 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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 ()