From bea62a9f7eecbf07276c46d977a254edb4627a08 Mon Sep 17 00:00:00 2001 From: larstvei Date: Tue, 23 Sep 2014 21:46:41 +0200 Subject: [PATCH] Updated README. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ea392a5..6d24556 100644 --- a/README.md +++ b/README.md @@ -775,6 +775,17 @@ To tidy up a buffer we define this function borrowed from [simenheg](https://git (untabify beg (if (< end (point-max)) end (point-max))))) ``` +If you have a link to a raw `.el`-file, run `M-x try` and yank an URL +into the minibuffer, and the file will be evaluated. + +```lisp +(defun try (url) + "Takes an URL to a .el-file, and evaluates it." + (interactive (list (read-from-minibuffer "url: "))) + (with-current-buffer (url-retrieve-synchronously url) + (eval-region (search-forward-regexp "^$") (point-max)))) +``` + ## Key bindings Bindings for [expand-region](https://github.com/magnars/expand-region.el).