Skip to content

Instantly share code, notes, and snippets.

@kaznak
Created November 11, 2017 16:16
Show Gist options
  • Save kaznak/2ce0ec6ef7c56da836ccff8938b9f9f2 to your computer and use it in GitHub Desktop.
Save kaznak/2ce0ec6ef7c56da836ccff8938b9f9f2 to your computer and use it in GitHub Desktop.

gist.el を導入してみる

経緯

読書メモ、技術メモなどを手軽にパブリッシュしたい。 gist が楽なのではないか。

普段のメモとり環境が Emacs なので適当な elisp ないか探していたが、 ちょうど gist.el というのを見つけたので試してみる。

関数

  • 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.

結果

gist-buffer を実行したらポストされた。いい感じ。 でも update も欲しいな......

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