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
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.