From a264185f747bbc74a2e4d3db2f3c1492cd698ae8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 22 Jul 2019 23:35:25 +0200 Subject: [PATCH] tools/gist: conform to new conventions --- modules/tools/gist/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)))))