hpaste.el 757 B

1234567891011121314151617
  1. (defun lpaste-region ()
  2. (interactive)
  3. (format "curl http://lpaste.net/new?%s"
  4. (mapconcat 'identity
  5. (mapcar (lambda (cons)
  6. (concat (url-hexify-string (car cons))
  7. "="
  8. (url-hexify-string (cdr cons))))
  9. `(("title" . "Elis1p")
  10. ("author" . "chrisdone")
  11. ("language" . "haskell")
  12. ("channel" . "")
  13. ("paste" . "Code here'%@!")
  14. ("private" . "private")
  15. ("email" . "")))
  16. "&")))