From b35b30dbe01d3391b7b09a409fe3a479c227b137 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Mon, 8 May 2017 18:19:14 +0200 Subject: [PATCH] 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