[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line
From: |
Artur Malabarba |
Subject: |
[elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode |
Date: |
Sat, 17 Oct 2015 21:32:54 +0000 |
branch: master
commit 9173a44b904d52c4c2634b68d74967d6261f4ddc
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
[Fix #12] Don't autodisable beacon on hl-line-mode
---
beacon.el | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/beacon.el b/beacon.el
index feda34b..afbe144 100644
--- a/beacon.el
+++ b/beacon.el
@@ -5,7 +5,7 @@
;; Author: Artur Malabarba <address@hidden>
;; URL: https://github.com/Malabarba/beacon
;; Keywords: convenience
-;; Version: 0.1
+;; Version: 0.1.1
;; Package-Requires: ((seq "1.9"))
;; This program is free software; you can redistribute it and/or modify
@@ -100,10 +100,15 @@ e.g. \"#666600\"."
"A list of predicates that prevent the beacon blink.
These predicate functions are called in order, with no
arguments, before blinking the beacon. If any returns
-non-nil, the beacon will not blink."
+non-nil, the beacon will not blink.
+
+For instance, if you want to disable beacon on buffers where
+`hl-line-mode' is on, you can do:
+
+ (add-hook 'beacon-dont-blink-predicates
+ (lambda () (bound-and-true-p hl-line-mode)))"
:type 'hook)
-(add-hook 'beacon-dont-blink-predicates (lambda () (bound-and-true-p
hl-line-mode)))
(add-hook 'beacon-dont-blink-predicates #'window-minibuffer-p)
(defcustom beacon-dont-blink-major-modes '(magit-status-mode)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 9173a44 1/2: [Fix #12] Don't autodisable beacon on hl-line-mode,
Artur Malabarba <=