Gist integration
Yet another Gist client for Emacs.
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:
(setq jist-github-token "TOKEN")
to your init.el
.oauth-token
to your ~/.gitconfig
: git config --global github.oauth-token MYTOKEN
Warning: By default, the functions
jist-region
andjist-buffer
create anonymous gists. To create gists with you configured account usejist-auth-region
andjist-auth-buffer
.
Create a gist from an active region:
------------------------- | ------ | --------- jist-auth-region
| | jist-auth-region-public
| x | jist-region
| | x jist-region-public
| x | x
Create a gist of the contents of the current buffer:
------------------------- | ------ | --------- jist-auth-buffer
| | jist-auth-buffer-public
| x | jist-buffer
| | x jist-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_url
and git_push_url
use 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 "git@gist.github.com:/"]
pushInsteadOf = "https://gist.github.com/"
org-mode
.Oauth bearer token to interact with the Github API.
Directory where to the gists will be cloned.
jist-enable-default-authorized
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.
Function and Macro Documentation(jist-json-read &optional CODING-SYSTEM)
Call json-read
with CODING-SYSTEM.
(jist-json-encode OBJECT &optional 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.
(jist-dired-auth-public ARG)
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.
(jist-auth-region-public)
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.
(jist-auth-buffer-public)
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.
(jist-edit-description 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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4