mirror of
https://github.com/larstvei/Try.git
synced 2024-11-26 03:28:31 +00:00
Add try-and-refresh
This commit is contained in:
parent
43e4fa2638
commit
6b5b0c18f5
5
try.el
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user