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).