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

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

[nongnu] elpa/webpaste b35b30d 134/298: Added documentation for how to c


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste b35b30d 134/298: Added documentation for how to configure provider priority
Date: Thu, 9 Dec 2021 19:00:00 -0500 (EST)

branch: elpa/webpaste
commit b35b30dbe01d3391b7b09a409fe3a479c227b137
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Added documentation for how to configure provider priority
    
    This fixes #10.
---
 README.org | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/README.org b/README.org
index b1c8b0c..49f7649 100644
--- a/README.org
+++ b/README.org
@@ -22,6 +22,38 @@ easiest way to install and configure packages.
            ("C-c C-p C-r" . webpaste-paste-region)))
 #+END_SRC
 
+** Configuration
+*** Choosing providers / provider priority
+To select which providers to use in which order you need to set the variable
+=webpaste-provider-priority= which is a list of strings containing the
+providers names.
+
+Examples:
+#+begin_src emacs-lisp :tangle yes
+  ;; Choosing githup gist only
+  (setq webpaste-provider-priority '("gist.github.com"))
+
+  ;; Choosing ptpb.pw as first provider and dpaste.de as second
+  (setq webpaste-provider-priority '("ptpb.pw" "dpaste.de"))
+
+  ;; Choosing 1) ptpb.pw, 2) dpaste.de, 3) ix.io
+  (setq webpaste-provider-priority '("ptpb.pw" "dpaste.de" "ix.io"))
+
+  ;; You can always append this list as much as you like, and which providers
+  ;; that exists is documented below in the readme.
+#+end_src
+
+This can be added to the =:config= section of use-package:
+#+BEGIN_SRC emacs-lisp
+  (use-package webpaste
+    :ensure t
+    :bind (("C-c C-p C-b" . webpaste-paste-buffer)
+           ("C-c C-p C-r" . webpaste-paste-region))
+    :config
+    (progn
+      (setq webpaste-provider-priority '("ptpb.pw" "dpaste.de"))))
+#+END_SRC
+
 ** TODO Providers to implement [6/9]
  - [X] ptpb.pw
  - [X] ix.io



reply via email to

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