branch: elpa/auto-dim-other-buffers commit ed9ebbcc52e9c2118a0753c9c5494a6dea2d861b Author: Michal Nazarewicz <min...@mina86.com> Commit: Michal Nazarewicz <min...@mina86.com>
Define Auto Dim Other Buffers customise group Besides playing nicely with Customize, this addresses the following compilation warning: In toplevel form: auto-dim-other-buffers.el:316:1: Warning: defcustom for ‘auto-dim-other-buffers-mode’ fails to specify containing group --- auto-dim-other-buffers.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el index 43f7292504..67e2c48b3b 100644 --- a/auto-dim-other-buffers.el +++ b/auto-dim-other-buffers.el @@ -64,6 +64,10 @@ (require 'face-remap) +(defgroup auto-dim-other-buffers nil + "Visually makes windows without focus less prominent." + :group 'convenience) + (defface auto-dim-other-buffers-face '((((background light)) :background "#eff") (t :background "#122")) "Face (presumably dimmed somehow) for non-selected window." @@ -294,6 +298,7 @@ a buffer was displayed in multiple windows, none of them would be dimmed even though at most one could have focus. This historic behaviour is where the mode gets its name from." :global t + :group 'auto-dim-other-buffers ;; Add/remove all hooks (let ((callback (if auto-dim-other-buffers-mode #'add-hook #'remove-hook))) (funcall callback 'window-configuration-change-hook #'adob--rescan-windows)