Git Product home page Git Product logo

yagist.el's Introduction

yagist.el -- Yet Another Emacs integration for gist.github.com

Install

$ cd ~/.emacs.d/vendor
$ git clone git://github.com/mhayashi1120/yagist.el.git

In your emacs config:

(add-to-list 'load-path "~/.emacs.d/vendor/yagist.el")
(require 'yagist)

If you want to save encrypted token to ~/.gitconfig install elisp from following url. And set a variable:

https://github.com/mhayashi1120/Emacs-kaesar/raw/master/kaesar.el

(setq yagist-encrypt-risky-config t)

Functions

M-x yagist-list - Lists your gists in a new buffer. Use arrow keys
to browse, RET to open one in the other buffer.

M-x yagist-region - Copies Gist URL into the kill ring.
With a prefix argument, makes a private gist.

M-x yagist-region-private - Explicitly create a private gist.

M-x yagist-buffer - Copies Gist URL into the kill ring.
With a prefix argument, makes a private gist.

M-x yagist-buffer-private - Explicitly create a private gist.

M-x yagist-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.

M-x yagist-region-or-buffer-private - Explicitly create a gist from the
region or buffer.

M-x yagist-minor-mode - Automated POST current buffer contents to gist
after saving.

M-x yagist-global-minor-mode - Open the file that under gist repository
automatically activate `yagist-minor-mode'.

Config

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

OAuth authentication

Get the Personal API Access Token from:

https://github.com/settings/applications

Save the token to your ~/.gitconfig :

$ git config --global github.oauth-token ***************************

Or put following to your .emacs:

(setq yagist-github-token "******************************")

Other customizations

 M-x customize-group (yagist)

Meta

yagist.el's People

Contributors

mhayashi1120 avatar defunkt avatar mcfunley avatar wfarr avatar ivey avatar drewr avatar nex3 avatar yasuyk avatar hron avatar chrislo avatar offbyone avatar ober avatar the-kenny avatar toshiharu avatar technomancy avatar purcell avatar ptrv avatar oyvindio avatar

Watchers

Jason Milkins avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.