Install gist.el from marmalade (recommended)

For emacs 23, you'll need to install a version of package.el first. Some bootstrap code is available there: https://gist.github.com/1884169
Then proceed as for emacs 24. You might get some compilation errors, but the package should be operational in the end.

Getting started

When you first run a gist.el operation, you might be asked for your GitHub username and password. The username will be stored for future use, and a OAuth token will be stored in place of your password.

To make gist.el forget about those information, just remove them from your ~/.gitconfig file

Functions

gist-list - Lists your gists in a new buffer. Use arrow keys
to browse, RET to open one in the other buffer.
gist-region - Copies Gist URL into the kill ring.
With a prefix argument, makes a private gist.
gist-region-private - Explicitly create a private gist.
gist-buffer - Copies Gist URL into the kill ring.
With a prefix argument, makes a private gist.
gist-buffer-private - Explicitly create a private gist.
gist-region-or-buffer - Post either the current region, or if mark
is not set, the current buffer as a new paste at gist.github.com .
Copies the URL into the kill ring.
With a prefix argument, makes a private paste.
gist-region-or-buffer-private - Explicitly create a gist from the
region or buffer.

Config

Set gist-view-gist to non-nil if you want to view your Gist using
browse-url after it is created.