branch: elpa/auto-dim-other-buffers
commit 80629772844f9538ea54928e1eb3994e5fe42f71
Author: Steven Degutis <[email protected]>
Commit: Steven Degutis <[email protected]>
face is real face
---
README.md | 4 ++--
auto-dim-other-buffers.el | 10 +++-------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index 2ae1fe809f..575cc84327 100644
--- a/README.md
+++ b/README.md
@@ -8,5 +8,5 @@ Use [MELPA](http://melpa.milkbox.net/): `M-x package-install
RET auto-dim-other-
## Usage
-* `M-x turn-on-auto-dim-other-buffers`
-* Customize `auto-dim-other-buffers-face`
+* `M-x turn-on-auto-dim-other-buffers RET`
+* `M-x customize-face RET auto-dim-other-buffers-face RET`
diff --git a/auto-dim-other-buffers.el b/auto-dim-other-buffers.el
index 5592dfb5a9..ba5c65847b 100644
--- a/auto-dim-other-buffers.el
+++ b/auto-dim-other-buffers.el
@@ -4,12 +4,8 @@
;; URL: https://github.com/sdegutis/auto-dim-other-buffers.el
;; Version: 1.2
-(make-face 'sd/dimmed-font)
-(set-face-attribute 'sd/dimmed-font nil :background "black")
-
-(defcustom auto-dim-other-buffers-face 'sd/dimmed-font
+(defface auto-dim-other-buffers-face '((t :background "black"))
"Face (presumably dimmed somehow) for non-current buffers."
- :type 'face
:group 'auto-dim-other-buffers)
(defun adob/pre-command-hook ()
@@ -30,7 +26,7 @@
)
(set-buffer adob/last-buffer)
- (buffer-face-set auto-dim-other-buffers-face))
+ (buffer-face-set 'auto-dim-other-buffers-face))
;; now, restore the current buffer, and undim it.
(set-buffer original)
@@ -47,7 +43,7 @@
(adob/set-face-on-all-buffers nil))
(defun adob/dim-all-windows ()
- (adob/set-face-on-all-buffers auto-dim-other-buffers-face))
+ (adob/set-face-on-all-buffers 'auto-dim-other-buffers-face))
(defun turn-off-auto-dim-other-buffers ()
(interactive)