mirror of
https://github.com/larstvei/Try.git
synced 2024-11-26 11:38:30 +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."
|
"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
|
||||||
|
Loading…
Reference in New Issue
Block a user