The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Pastie Integration for Emacs: pastie.el

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Christian Neukirchen

Posts: 188
Nickname: chris2
Registered: Mar, 2005

Christian Neukirchen is a student from Biberach, Germany playing and hacking with Ruby.
Pastie Integration for Emacs: pastie.el Posted: Jul 10, 2006 1:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Christian Neukirchen.
Original Post: Pastie Integration for Emacs: pastie.el
Feed Title: chris blogs: Ruby stuff
Feed URL: http://chneukirchen.org/blog/category/ruby.atom
Feed Description: a weblog by christian neukirchen - Ruby stuff
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Christian Neukirchen
Latest Posts From chris blogs: Ruby stuff

Advertisement

Pastie is the new cool code pasting site around the net. Totally nifty; heck, you can even post to it with Vim.

Having nothing better to do (heh… you bet), I just couldn’t resist but get the good old elisp out and write a few Emacs functions to make it accessible from Emacs, too.

Well, there you are: pastie.el.

pastie.el defines three new functions you may want to bind to appropriate keys:

  • pastie-region pastes the current region, shows the URL of the new paste and puts it in the kill buffer for immediate pasting.

  • pastie-buffer pastes the whole buffer.

  • pastie-get asks for a Pastie paste id and fetches it into an appropriate buffer.

Of course, all methods handle the various Pastie ways of syntax highlighting, provided you use the corresponding Emacs modes.

Happy pasting!

NP: Mark Knopfler—Everybody Pays

Read: Pastie Integration for Emacs: pastie.el

Topic: gr.egario.us Gets an Update Previous Topic   Next Topic Topic: Say Hello To A New Typo Version

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use