]> code.delx.au - gnu-emacs-elpa/commitdiff
Merge commit '9173a44b904d52c4c2634b68d74967d6261f4ddc'
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 17 Oct 2015 21:31:33 +0000 (22:31 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 17 Oct 2015 21:31:33 +0000 (22:31 +0100)
1  2 
packages/beacon/beacon.el

index feda34b88819a81c0fa36d80443d037c6b2dce24,afbe1440f56e0d11d6b38b2489bcb5a925bdf783..afbe1440f56e0d11d6b38b2489bcb5a925bdf783
@@@ -5,7 -5,7 +5,7 @@@
  ;; Author: Artur Malabarba <emacs@endlessparentheses.com>
  ;; 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 +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)