Added documentation for how to configure provider priority

This fixes #10.
master
Elis Axelsson 9 years ago
parent 9ddc6170ae
commit b35b30dbe0
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 32
      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

Loading…
Cancel
Save