summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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