You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Elis Axelsson af0474eceb
Merge branch 'naclander-master'
9 years ago
test Added support for buffer-language depending on mode for some providers 9 years ago
.gitignore Added Cask file 9 years ago
.travis.yml Run tests on emacs 25.2 since it's been released 9 years ago
Cask Added coveralls for file coverage testing 9 years ago
LICENSE Added LICENSE 10 years ago
Makefile Rename make compile to make build because it's easier to remember 9 years ago
README.org Added documentation for how to configure provider priority 9 years ago
webpaste.el Add confirmation dialog of paste, before pasting 9 years ago

README.org

Webpaste.el – Paste text to pastebin-like services

<img src=" title="https://img.shields.io/badge/license-GPL_3-green.svg" /> <img src=" title="https://melpa.org/packages/webpaste-badge.svg" /> <img src=" title="https://stable.melpa.org/packages/webpaste-badge.svg" /> https://travis-ci.org/etu/webpaste.el.svg?branch=master">https://travis-ci.org/etu/webpaste.el.svg?branch=master https://coveralls.io/repos/github/etu/webpaste.el/badge.svg?branch=master">https://coveralls.io/repos/github/etu/webpaste.el/badge.svg?branch=master

This mode allows to paste whole buffers or parts of buffers to pastebin-like services. It supports more than one service and will failover if one service fails. More services can easily be added over time and prefered services can easily be configured.

Installation

The lazy way (Using use-package)

This requires that you have use-package set up. But it's in my opinion the easiest way to install and configure packages.

  (use-package webpaste
    :ensure t
    :bind (("C-c C-p C-b" . webpaste-paste-buffer)
           ("C-c C-p C-r" . webpaste-paste-region)))

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:

  ;; 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.

This can be added to the :config section of use-package:

  (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"))))

TODO Providers to implement [6/9]

  • ptpb.pw
  • ix.io
  • dpaste.com
  • sprunge.us
  • dpaste.de
  • paste.pound-python.org
  • paste.debian.net
  • bpaste.net
  • gist.github.com