emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste ed33094 266/298: Support mozilla hosted pastebin


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste ed33094 266/298: Support mozilla hosted pastebin service
Date: Thu, 9 Dec 2021 19:00:27 -0500 (EST)

branch: elpa/webpaste
commit ed33094f3af76104a31c6aeec6be44a16dd0f8cf
Author: condy <condy0919@gmail.com>
Commit: condy <condy0919@gmail.com>

    Support mozilla hosted pastebin service
---
 README.org  | 1 +
 webpaste.el | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/README.org b/README.org
index 01314fc..3d1b7d5 100644
--- a/README.org
+++ b/README.org
@@ -181,6 +181,7 @@ webpaste first and then just read the documentation by 
running this:
  - [X] dpaste.org
  - [X] gist.github.com
  - [X] paste.pound-python.org
+ - [X] paste.mozilla.org
  - [ ] paste.debian.net
  - [ ] bpaste.net
  - [ ] eval.in
diff --git a/webpaste.el b/webpaste.el
index 95531e5..57f297b 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -113,6 +113,14 @@ This uses `browse-url-generic' to open URLs."
      :lang-overrides ((emacs-lisp-mode . "clojure"))
      :success-lambda webpaste--providers-success-returned-string)
 
+    '("paste.mozilla.org"
+      :uri "https://paste.mozilla.org/api/";
+      :post-data (("expires" . 86400))
+      :post-field "content"
+      :post-lang-field-name "lexer"
+      :lang-overrides ((emacs-lisp-mode . "clojure"))
+      :success-lambda webpaste--providers-success-returned-string)
+
     ("gist.github.com"
      :uri "https://api.github.com/gists";
      :post-field nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]