summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-01-25 16:58:07 +0000
committerjao <jao@gnu.org>2021-01-25 16:58:07 +0000
commitc2436550b1c900f2f3266d965f101b1c08d748eb (patch)
treef4cf425669fa4aa5f919b730f67a419b65319c6f
parent92eb0dfbb7bbf450350ca5ac178c4dd93f2ad649 (diff)
downloadelibs-c2436550b1c900f2f3266d965f101b1c08d748eb.tar.gz
elibs-c2436550b1c900f2f3266d965f101b1c08d748eb.tar.bz2
ednc: dismiss all
-rw-r--r--eos/jao-ednc.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/eos/jao-ednc.el b/eos/jao-ednc.el
index 03d4049..a05f550 100644
--- a/eos/jao-ednc.el
+++ b/eos/jao-ednc.el
@@ -1,6 +1,6 @@
;;; jao-ednc.el --- Minibuffer notifications using EDNC -*- lexical-binding: t; -*-
-;; Copyright (C) 2020 jao
+;; Copyright (C) 2020, 2021 jao
;; Author: jao <mail@jao.io>
;; Keywords: tools, abbrev
@@ -137,5 +137,11 @@
(ednc-dismiss-notification (jao-ednc--last-notification)))))
(jao-ednc--clean))
+;;;###autoload
+(defun jao-ednc-dismiss-all ()
+ (interactive)
+ (while (jao-ednc--last-notification)
+ (jao-ednc-dismiss)))
+
(provide 'jao-ednc)
;;; jao-ednc.el ends here