Add try-and-refresh

This commit is contained in:
Lars Tveito 2016-02-03 00:26:26 +01:00
parent 43e4fa2638
commit 6b5b0c18f5

5
try.el
View File

@ -101,6 +101,11 @@
"Compose two functions." "Compose two functions."
(lambda (&rest x) (funcall f (apply g x)))) (lambda (&rest x) (funcall f (apply g x))))
(defun try-and-refresh ()
"Refreshes package-list before calling `try'."
(interactive)
(package-refresh-contents) (try))
;;;###autoload ;;;###autoload
(defun try () (defun try ()
"Try out a package from your `package-archives' or pass a URL "Try out a package from your `package-archives' or pass a URL