Skip to content

Instantly share code, notes, and snippets.

@pylemon
Created April 7, 2012 16:52
Show Gist options
  • Save pylemon/2330354 to your computer and use it in GitHub Desktop.
Save pylemon/2330354 to your computer and use it in GitHub Desktop.
github: using gist in emacs

gist-list usage:

g : reload the gist list from server
e : edit current gist description
k : delete current gist
+ : add a file to the current gist
- : remove a file from the current gist

C-x C-s : save a new version of the gist
C-x C-w : rename some file

@ : make a gist out of marked files (with a prefix, make it private)

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.

using browse-url after create gist to checkout gist in browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment