From 6b5b0c18f5d7e375d61154e3f2d3c03d54d0852c Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Wed, 3 Feb 2016 00:26:26 +0100 Subject: [PATCH] Add try-and-refresh --- try.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/try.el b/try.el index 4f3d729..638615a 100644 --- a/try.el +++ b/try.el @@ -101,6 +101,11 @@ "Compose two functions." (lambda (&rest x) (funcall f (apply g x)))) +(defun try-and-refresh () + "Refreshes package-list before calling `try'." + (interactive) + (package-refresh-contents) (try)) + ;;;###autoload (defun try () "Try out a package from your `package-archives' or pass a URL