Coder Social home page Coder Social logo

emacs-pastebin's Introduction

Emacs Pastebin Interface

This is a huge inteface to pastebin.com. With it you can

  • Paste buffers
  • Fetch pastes
  • Delete pastes
  • Get a nice list of pastes
  • Sort the pastes list by data, title, private, format, key

Install

  • Unpack the repo on ~/.emacs.d/lisp, create it if needed
  • Run make to compile it (optional)
  • Put it on path on your .emacs file
  • Restart emacs
mkdir ~/.emacs.d/lisp/
cd ~/.emacs.d/lisp/
wget https://github.com/gkos/emacs-pastebin/archive/master.zip
unzip master.zip 
rm master.zip
cd emacs-pastebin-master/
make

Then put this on your .emacs file:

(add-to-list 'load-path "~/.emacs.d/lisp/emacs-pastebin-master/")
(require 'neopastebin)
(pastebin-create-login :dev-key "YOURDEVKEY"
                       :username "YOURUSER")

Restart emacs or eval .emacs again. On emacs M-x pastebin-l<TAB> <RET>. Type password. Save password in disk, it will be saved in clear text at ~/.emacs.d/pastebin-data/pass or whatever you set to pastebin-data-dir. If you really care, you can setup this variable to an encrypted partition. :P

You should see a nice list of pastes on your screen right now.

Usage

Listing

M-x pastebin-list-buffer-refresh -> Fetch and list pastes on "list buffer". After logged you can list your pastes with command pastebin-list-buffer-refresh, just type pastebin-l and press TAB.

Here is a list of keybinds from list buffer.

RET -> fetch paste and switch to it
r ->   refresh list and list buffer
d ->   delete paste, you'll be asked for confirmation
t ->   order by title
D ->   order by date
f ->   order by format
k ->   order by key
p ->   order by private

Creating a new paste

M-x pastebin-new -> will create a new paste from current buffer

The name of the paste is given from current buffer name The format from buffers major mode Prefix argument makes private

emacs-pastebin's People

Contributors

dhilst avatar josefassad avatar

Watchers

James Cloos avatar franterminator avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.