2014-11-14 19:49:01 +00:00
|
|
|
# Try
|
2014-11-13 22:20:08 +00:00
|
|
|
|
2014-11-14 19:49:01 +00:00
|
|
|
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.
|
2014-11-13 22:20:08 +00:00
|
|
|
|
2014-11-14 20:01:56 +00:00
|
|
|
Packages from ELPA will temporarily be stored in `/tmp/` by default.
|
|
|
|
|
2014-11-15 22:47:45 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
You can install Try using elpa.
|
|
|
|
|
|
|
|
It's available on [marmalade](http://marmalade-repo.org/) and
|
|
|
|
[melpa](http://melpa.milkbox.net/):
|
|
|
|
|
2014-11-17 00:31:38 +00:00
|
|
|
<kbd> M-x package-install try </kbd>
|
2014-11-15 22:47:45 +00:00
|
|
|
|
2014-11-14 20:01:56 +00:00
|
|
|
## Usage
|
|
|
|
|
2014-11-17 00:31:38 +00:00
|
|
|
To try out a package you can run
|
2014-11-14 19:49:01 +00:00
|
|
|
|
2014-11-17 00:31:38 +00:00
|
|
|
<kbd> M-x try RET some-package </kbd>
|
2014-11-15 22:47:45 +00:00
|
|
|
|
|
|
|
Or if you want to try out some package from the web, just paste in the URL
|
|
|
|
|
2014-11-17 00:31:38 +00:00
|
|
|
<kbd> M-x try RET https://url.com/to/some/file.el </kbd>
|
2014-11-15 22:47:45 +00:00
|
|
|
|
2014-11-14 20:01:56 +00:00
|
|
|
### 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:
|
|
|
|
|
2014-11-17 00:31:38 +00:00
|
|
|
<kbd> M-x try RET multiple-cursors RET </kbd>
|
2014-11-14 20:01:56 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
2014-11-17 00:31:38 +00:00
|
|
|
<kbd> M-x try RET https://raw.githubusercontent.com/fniessen/emacs-leuven-theme/master/leuven-theme.el RET </kbd>
|
2014-11-14 19:49:01 +00:00
|
|
|
|
|
|
|
Unfortunately, you won't be able to try Try with `M-x try RET try`.
|