6

使用emacs管理gist代码片段--gist

 3 years ago
source link: https://www.lujun9972.win/blog/2018/11/01/%E4%BD%BF%E7%94%A8emacs%E7%AE%A1%E7%90%86gist%E4%BB%A3%E7%A0%81%E7%89%87%E6%AE%B5--gist/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

安装gist库

(package-install-new 'gist)
  • gist-list

    在新buffer中显示gist。

    第一次使用时需要输入github的用户名和密码。

    在显示gist的buffer中可以使用方向键浏览gist,按RET在另外的buffer中显示gist的内容

  • gist-region

    根据选中的region创建一个gist 同时将对应的URL保持到kill ring中

    若调用该命令前带了前缀参数,则表示创建一个私有gist

  • gist-region-private

    相当于C-u M-x gist-region

  • gist-buffer

    根据整个buffer的内容创建一个gist 同时将对应的URL保持到kill ring中

    若调用该命令前带了前缀参数,则表示创建一个私有gist

  • gist-buffer-private

    相当于C-u M-x gist-buffer

  • gist-region-or-buffer

    若选中了region,则等同于gist-region,否则等同于gist-buffer

  • gist-region-or-buffer-private

    相当于C-u M-x gist-region-or-buffer


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK