jamesronan/SpinalTapCodeMosh — pull request #14 by taryk (2013-07-04 09:28:56+00:00)
Title: Ability to post to Spinal:Tap:Mode:Mosh directly from Emacs

Provides the following functions, which can be used via `M-x`

| Function | Description |
| ------------ | ------------- |
| pasteit-region | to send a selected region to Spinal:Tap:Mode:Mosh |
| pasteit-buffer | to send a whole buffer to Spinal:Tap:Mode:Mosh |
| pasteit-region-irc | to send a selected region to Spinal:Tap:Mode:Mosh and notify people via IRC |
| pasteit-buffer-irc | to send a whole buffer to Spinal:Tap:Mode:Mosh and notify people via IRC |

It fills out all required parameters:
* **subject** - user will be asked for a mosh title, but it can be left empty (file's path name will be used as a title in this case)
* **data** - selected text or whole buffer
* **poster** - currect user (`$USER` is used)
* **syntaxt** - buffer's major-mode

Installation:

```lisp
;; Put this file into your load-path and the following into your ~/.emacs:
(require 'pasteit)
(setq spinal-tap-code-mosh-url "http://spinal-tap-mode-mosh/")
(setq spinal-tap-code-mosh-irc-channels '("channel1" "channel2"))

;; You can also load `pasteit.el` directly
(load-file "path/to/pasteit.el")
```

Dependencies:
It depends on `json` package that can be simply installed via `ELPA` (`M-x install-package` and type `json`)