Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (21 sloc) 2.167 kb
338ce468 »
2011-06-22 Changed README from plain text to org-mode and added note about el-get.
1 #-*- mode:org; mode:visual-line; coding:utf-8; -*-
2 codepad.el --- Emacs integration for [[http://codepad.org][codepad.org]].
3
4 See [[http://codepad.org]].
5
6 Codepad is a pastebin where you can paste code and share it on a chat or via email. Codepad also provides an online compiler/interpreter and can run your programs online.
7
8 emacs-codepad provides an Emacs integration for Codepad. Currently you can use it to paste your code to and fetch code from Codepad.
9
10 Contributors are welcome!
11
12 codepad.el is based on [[http://github.com/defunkt/gist.el/blob/master/gist.el][gist.el]] which was written by Christian Neukirchen and others. codepad.el is written by Rüdiger Sonderfeld. You can contact me via E-Mail: [[mailto:ruediger@c-plusplus.de][ruediger@c-plusplus.de]].
13
14 Thanks to Thomas Weidner <[[mailto:thomas001le@gmail.com][thomas001le@gmail.com]]> for his patches and help. Thanks to Lorenzo Villani <[[mailto:lvillani@binaryhelix.net][lvillani@binaryhelix.net]]> for fixing the "error in process filter: Symbol's value as variable is void: url-max-redirections" issue.
15
16 * Installation
17 Codepad was developed for Emacs 23.1+. codepad.el has problems with older versions of Emacs (url.el)! If codepad.el won't work please upgrade your Emacs.
18
19 Installation is straight forward:
20
21 Add the following lines to your =~/.emacs=:
22
23 #+BEGIN_SRC emacs-lisp
24 (add-to-list 'load-path "PATH") ;; replace PATH with the path to codepad.el
25 (autoload 'codepad-paste-region "codepad" "Paste region to codepad.org." t)
26 (autoload 'codepad-paste-buffer "codepad" "Paste buffer to codepad.org." t)
27 (autoload 'codepad-fetch-code "codepad" "Fetch code from codepad.org." t)
28 #+END_SRC
29
30 Restart Emacs (or evaluate those lines) and you can use codepad.el by calling =M-x codepad-paste-region= to paste the current selected region or =M-x codepad-paste-buffer= to paste the current selected buffer.
31
32 You can configure codepad.el by calling =M-x customize-group codepad=.
33
34 Codepad.el is also available via [[https://github.com/dimitri/el-get][el-get]] and it is currently part of [[http://overlays.gentoo.org/proj/emacs/browser/emacs-overlay/app-emacs/codepad][Gentoo's Emacs Overlays]].
Something went wrong with that request. Please try again.