Gist integration
Yet another Gist client for Emacs.
- Allows to create gists.
- Allows to delete/clone/star/unstar a gist.
- List your owned/starred gists.
- List public gists.
- List public gists from another github user.
To create anonymous gists is not necessary any configuration, but if you want
to create gists with your github account you need to obtain a oauth-token
with gist scope in https://github.com/settings/applications, and set it
through any of the following methods:
- Add
(setq jist-github-token "TOKEN")to yourinit.el. - Add
oauth-tokento your~/.gitconfig:git config --global github.oauth-token MYTOKEN
Warning: By default, the functions
jist-regionandjist-buffercreate anonymous gists. To create gists with you configured account usejist-auth-regionandjist-auth-buffer.
-
Create a gist from an active region:
| public | anonymous------------------------- | ------ | ---------
jist-auth-region| |jist-auth-region-public| x |jist-region| | xjist-region-public| x | x -
Create a gist of the contents of the current buffer:
| public | anonymous------------------------- | ------ | ---------
jist-auth-buffer| |jist-auth-buffer-public| x |jist-buffer| | xjist-buffer-public| x | x
You can set the variable jist-enable-default-authorized to non nil to
always use your configured account when creating gists.
-
In the current gist API the values of
gist_pull_urlandgit_push_urluse the HTTP protocol, but it's inconvenient to use the HTTP for pushes. To use the SSH protocol for pushes in cloned gists you need to add the following to your git-config(1):[url "[email protected]:/"] pushInsteadOf = "https://gist.github.com/"
- List Gist forks.
- Allow gist edition with
org-mode. - Handle nicely 422 errors. See: https://developer.github.com/v3/#client-errors
- Add pagination support with rfc5988 link headers. See:
Oauth bearer token to interact with the Github API.
Directory where to the gists will be cloned.
Enable gists creation with associated account.
Enable gists creation without using the buffer name.
Default per_page argument used in list requests.
Disable asking before destructive operations.
Whether to use gist descriptions for completions.
Call json-read with CODING-SYSTEM.
Return a JSON representation of OBJECT as a string with CODING-SYSTEM.
Create a authenticated gist from marked files(s) in dired. With prefix ARG create a gist from file at point.
Create a public gist from marked files(s) in dired. With prefix ARG create a gist from file at point.
Create an authorized gist from an active region.
Create a public gist from an active region.
Create a public and authorized gist from an active region.
Create a gist from the contents of the current buffer.
Create an authorized gist from the contents of the current buffer.
Create a public gist from the contents of the current buffer.
Create an authorized and public gist from the contents of the current buffer.
Delete gist identified by ID.
Show a gist identified by ID and put into kill-ring.
Show a gist identified by ID in a browser using browse-url.
Star a gist identified by ID.
Fork a gist identified by ID.
Unstar a gist identified by ID.
Clone gist identified by ID.
Set description to a gist identified by ID.
Refetch the gists of a jist-list-mode buffer.
Fetch the next page of the gists of a jist-list-mode buffer.
Show a list of gist of a github USER.
Show a list of public gists.
Show a list of starred gists of the configured user.
