Add doom*shut-up advisor to core-lib

This commit is contained in:
Henrik Lissner 2018-04-23 00:03:28 -04:00
parent 35e5dbcb11
commit aef9724324
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 8 additions and 7 deletions

View file

@ -97,6 +97,10 @@ compilation."
(save-silently t))
,@forms))))
(defun doom*shut-up (orig-fn &rest args)
"Generic advisor for silencing noisy functions."
(quiet! (apply orig-fn args)))
(defvar doom--transient-counter 0)
(defmacro add-transient-hook! (hook &rest forms)
"Attaches transient forms to a HOOK.