mirror of
https://github.com/larstvei/Try.git
synced 2024-11-26 11:38:30 +00:00
Added metadata and autoload.
This commit is contained in:
parent
54a7add131
commit
48b92fd6af
6
try.el
6
try.el
@ -3,6 +3,8 @@
|
|||||||
;; Copyright (C) 2014 Lars Tveito.
|
;; Copyright (C) 2014 Lars Tveito.
|
||||||
|
|
||||||
;; Author: Lars Tveito <larstvei@ifi.uio.no>
|
;; Author: Lars Tveito <larstvei@ifi.uio.no>
|
||||||
|
;; Created: 13th November 2014
|
||||||
|
;; URL: http://github.com/larstvei/try
|
||||||
|
|
||||||
;; Contains code from GNU Emacs <https://www.gnu.org/software/emacs/>,
|
;; Contains code from GNU Emacs <https://www.gnu.org/software/emacs/>,
|
||||||
;; released under the GNU General Public License version 3 or later.
|
;; released under the GNU General Public License version 3 or later.
|
||||||
@ -19,6 +21,7 @@
|
|||||||
;; You should have received a copy of the GNU General Public License along
|
;; You should have received a copy of the GNU General Public License along
|
||||||
;; with Try. If not, see <http://www.gnu.org/licenses/>.
|
;; with Try. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(require 'url)
|
(require 'url)
|
||||||
|
|
||||||
@ -42,6 +45,7 @@
|
|||||||
"Compose two functions."
|
"Compose two functions."
|
||||||
(lambda (&rest x) (funcall f (apply g x))))
|
(lambda (&rest x) (funcall f (apply g x))))
|
||||||
|
|
||||||
|
;;;###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
|
||||||
to a raw .el file. Packages are stored in `try-tmp-dir' and raw
|
to a raw .el file. Packages are stored in `try-tmp-dir' and raw
|
||||||
@ -61,3 +65,5 @@ to a raw .el file. Packages are stored in `try-tmp-dir' and raw
|
|||||||
"Try running `package-refresh-contents'!"))))))
|
"Try running `package-refresh-contents'!"))))))
|
||||||
|
|
||||||
(provide 'try)
|
(provide 'try)
|
||||||
|
|
||||||
|
;;; try.el ends here.
|
||||||
|
Loading…
Reference in New Issue
Block a user