From 90806dc7ea139ce4fd7908cc5283ea05de8a1e26 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Wed, 13 May 2015 00:08:43 +0200 Subject: [PATCH] Added custom variable for setting dimness --- focus.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/focus.el b/focus.el index 508ed23..f8bbe83 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.")