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

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

[nongnu] elpa/focus 90806dc7ea 18/82: Added custom variable for setting


From: ELPA Syncer
Subject: [nongnu] elpa/focus 90806dc7ea 18/82: Added custom variable for setting dimness
Date: Tue, 6 Sep 2022 04:58:55 -0400 (EDT)

branch: elpa/focus
commit 90806dc7ea139ce4fd7908cc5283ea05de8a1e26
Author: Lars Tveito <larstvei@ifi.uio.no>
Commit: Lars Tveito <larstvei@ifi.uio.no>

    Added custom variable for setting dimness
---
 focus.el | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/focus.el b/focus.el
index 508ed23596..f8bbe8378f 100644
--- a/focus.el
+++ b/focus.el
@@ -32,6 +32,17 @@
 
 (require 'cl-lib)
 
+(defcustom focus-dimness 0
+  "When `focus-mode' is enabled, the dimness of the sections that
+are out of focus is determined by this integer. A positive value
+increases the dimness of the sections, whilst a negative value
+decreases the dimness.
+
+The default is 0 which means a 50/50 mixture of the background
+and foreground color."
+  :type '(integer)
+  :group 'focus)
+
 (defvar-local focus-pre-overlay nil
   "The overlay that dims the text prior to the current-point.")
 



reply via email to

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