diff --git a/modules/tools/gist/config.el b/modules/tools/gist/config.el index 4e8f84b52..0226710b3 100644 --- a/modules/tools/gist/config.el +++ b/modules/tools/gist/config.el @@ -9,8 +9,8 @@ (set-popup-rule! "^\\*gist-" :ignore t) - (defun +gist*list-render (orig-fn &rest args) + (def-advice! +gist-list-render-a (orig-fn &rest args) + :around #'gist-list-render (funcall orig-fn (car args) t) (unless (cadr args) - (pop-to-buffer (current-buffer)))) - (advice-add #'gist-list-render :around #'+gist*list-render)) + (pop-to-buffer (current-buffer)))))