diff options
Diffstat (limited to 'lib/eos/jao-ednc.el')
-rw-r--r-- | lib/eos/jao-ednc.el | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/eos/jao-ednc.el b/lib/eos/jao-ednc.el index 71f1ce4..0c52286 100644 --- a/lib/eos/jao-ednc.el +++ b/lib/eos/jao-ednc.el @@ -35,7 +35,6 @@ (defvar jao-ednc--notifications ()) (defvar jao-ednc--handlers ()) -(defvar jao-ednc-use-minibuffer-notifications nil) (defvar jao-ednc-use-tracking nil) (defface jao-ednc-tracking '((t :inherit warning)) @@ -61,22 +60,15 @@ (defun jao-ednc-ignore-app (app) (jao-ednc-add-handler app (lambda (not _) (ednc-dismiss-notification not)))) -(defun jao-ednc--pop-minibuffer () - (if jao-ednc-use-minibuffer-notifications - (jao-minibuffer-pop-notification) - (jao-minibuffer-refresh))) - (defun jao-ednc--clean (&optional notification) (tracking-remove-buffer (get-buffer ednc-log-name)) (if notification (remove notification jao-ednc--notifications) (pop jao-ednc--notifications)) - (jao-ednc--pop-minibuffer)) + (jao-minibuffer-refresh)) (defun jao-ednc--show-last () - (if jao-ednc-use-minibuffer-notifications - (jao-minibuffer-push-notification '(:eval (jao-ednc--format-last))) - (message "%s" (jao-ednc--format-last)))) + (jao-minibuffer-push-notification '(:eval (jao-ednc--format-last)))) (defun jao-ednc--default-handler (notification newp) (if (not newp) |