Merge pull request #2 from torenord/master

Clarify README.md and commentary
This commit is contained in:
Lars Tveito 2016-02-26 16:08:53 +01:00
commit 6b5ea53b83
2 changed files with 11 additions and 51 deletions

View File

@ -1,8 +1,8 @@
# Try # Try
Try is a packages that allow you to try out Emacs packages without Try is a package that allows you to try out Emacs packages without installing
installing them. If you pass a URL to a plain-text `.el`-file it evaluates them. If you pass a URL to a plain text `.el`-file it evaluates the content,
the content, without storing the file. without storing the file.
Packages from ELPA will temporarily be stored in `/tmp/` by default. Packages from ELPA will temporarily be stored in `/tmp/` by default.
@ -27,17 +27,16 @@ Or if you want to try out some package from the web, just paste in the URL
### Example ### Example
If you for instance have [melpa](http://melpa.org/) in your If you for instance have [melpa](http://melpa.org/) in your `package-archives`
`package-archives` you can try you can try [multiple cursors](https://github.com/magnars/multiple-cursors.el)
[multiple cursors](https://github.com/magnars/multiple-cursors.el) by by running:
running:
<kbd> M-x try RET multiple-cursors RET </kbd> <kbd> M-x try RET multiple-cursors RET </kbd>
If you on the other hand want to test out a single `.el`-file from somewhere If you on the other hand want to test out a single `.el`-file from somewhere
you can simply insert an URL. Trying out you can simply insert an URL. Trying out
[Leuven-theme](https://github.com/fniessen/emacs-leuven-theme) can be done [Leuven-theme](https://github.com/fniessen/emacs-leuven-theme) can be done by
by running: running:
<kbd> M-x try RET https://raw.githubusercontent.com/fniessen/emacs-leuven-theme/master/leuven-theme.el RET </kbd> <kbd> M-x try RET https://raw.githubusercontent.com/fniessen/emacs-leuven-theme/master/leuven-theme.el RET </kbd>

45
try.el
View File

@ -26,50 +26,11 @@
;;; Commentary: ;;; Commentary:
;; # Try ;; Try is a package that allows you to try out Emacs packages without
;; installing them. If you pass a URL to a plain text `.el`-file it evaluates
;; Try is a packages that allow you to try out Emacs packages without
;; installing them. If you pass a URL to a plain-text `.el`-file it evaluates
;; the content, without storing the file. ;; the content, without storing the file.
;; Packages from ELPA will temporarily be stored in `/tmp/` by default. ;; For more info see https://github.com/larstvei/Try
;; ## Installation
;; You can install Try using elpa.
;; It's available on [marmalade](http://marmalade-repo.org/) and
;; [melpa](http://melpa.milkbox.net/):
;; M-x package-install try
;; ## Usage
;; To try out a package you can run
;; M-x try RET some-package
;; Or if you want to try out some package from the web, just paste in the URL
;; M-x try RET https://url.com/to/some/file.el
;; ### Example
;; If you for instance have [melpa](http://melpa.org/) in your
;; `package-archives` you can try
;; [multiple cursors](https://github.com/magnars/multiple-cursors.el) by
;; running:
;; M-x try RET multiple-cursors RET
;; If you on the other hand want to test out a single `.el`-file from somewhere
;; you can simply insert an URL. Trying out
;; [Leuven-theme](https://github.com/fniessen/emacs-leuven-theme) can be done
;; by running:
;; M-x try RET https://raw.githubusercontent.com/fniessen/emacs-leuven-theme/master/leuven-theme.el RET
;; Unfortunately, you won't be able to try Try with `M-x try RET try`.
;;; Code: ;;; Code:
(require 'package) (require 'package)