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