aboutsummaryrefslogtreecommitdiff
path: root/chime.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-23 18:43:34 -0600
committerCraig Jennings <c@cjennings.net>2026-02-23 18:43:34 -0600
commit52bc83a17b36e9d74be847b0e3d0a83e705dba3f (patch)
tree4d502a3bd9d6dcbadb1a3400fe4f56712d6692b4 /chime.el
parentfbd06dec50f645f96a1729de73a15b5e99de24fd (diff)
downloadchime-52bc83a17b36e9d74be847b0e3d0a83e705dba3f.tar.gz
chime-52bc83a17b36e9d74be847b0e3d0a83e705dba3f.zip
Fix defcustom :type specs for list and nullable variables
- chime-predicate-whitelist: (function) -> (repeat function) - chime-predicate-blacklist: (function) -> (repeat function) - chime-additional-environment-regexes: (string) -> (repeat string) - chime-notification-icon: string -> choice of nil or file path
Diffstat (limited to 'chime.el')
-rw-r--r--chime.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/chime.el b/chime.el
index 301d224..6650235 100644
--- a/chime.el
+++ b/chime.el
@@ -149,7 +149,8 @@ Note: Changes take effect after restarting chime-mode."
"Path to notification icon file."
:package-version '(chime . "0.4.1")
:group 'chime
- :type 'string)
+ :type '(choice (const :tag "No icon" nil)
+ (file :tag "Icon file path")))
(defcustom chime-keyword-whitelist nil
"Receive notifications for these keywords only.
@@ -247,7 +248,7 @@ trigger a notification. Leave this variable blank if you do not want to filter
anything."
:package-version '(chime . "0.5.0")
:group 'chime
- :type '(function))
+ :type '(repeat function))
(defcustom chime-additional-environment-regexes nil
"Additional regular expressions for async environment injection.
@@ -255,7 +256,7 @@ These regexes are provided to `async-inject-environment' before
running the async command to check notifications."
:package-version '(chime . "0.5.0")
:group 'chime
- :type '(string))
+ :type '(repeat string))
(defcustom chime-predicate-blacklist
'(chime-done-keywords-predicate)
@@ -264,7 +265,7 @@ Each function should take an event POM and return non-nil iff that event should
not trigger a notification."
:package-version '(chime . "0.5.0")
:group 'chime
- :type '(function))
+ :type '(repeat function))
(defcustom chime-extra-alert-plist nil
"Additional arguments that should be passed to invocations of `alert'."