Gist mode issue

July 2, 2017

Headline

Recently, I recommended using gist.el to work with your Gists on GitHub. I found an issue with gist.el in the version installed here.

I was having trouble editing the description of the gists with the e command.

e               gist-edit-current-description

The error that was returned was:

byte-code: Invalid slot type: gh-gist-gist, id, string, nil

The latest version of gist.el is 1.4.0 fixes the issue but here I see only 1.3.1 in my package list.

  gist               1.3.1         available  marmalade  Emacs integration for gist.github.com

So, I decided to manually install gist.el and it's dependencies.

Installing from git

https://github.com/defunkt/gist.el

Dependencies

  • gh.el GitHub client library. Install from there: https://github.com/sigma/gh.el
  • pcache.el Really a gh.el dependency. Install from there: https://github.com/sigma/pcache
  • logito.el Really a gh.el dependency. Install from there: https://github.com/sigma/logito

Some of these have dependencies. The final list of commands to clone them all is as follows:

git clone https://github.com/sigma/gh.el.git
git clone https://github.com/sigma/marshal.el.git
git clone https://github.com/Wilfred/ht.el.git

git clone https://github.com/sigma/pcache.git
git clone https://github.com/sigma/logito.git

Gist

To clone the gist mode:

  git clone git://github.com/defunkt/gist.el.git

Configuring Emacs

Lastly, to configure Emacs to load them.

(defvar git-clones "PARENT DIRECTORY OF CLONED DIRECTORIES")

(add-to-list 'load-path (concat git-clones "gh.el"))
(add-to-list 'load-path (concat git-clones "gist.el"))
(add-to-list 'load-path (concat git-clones "ht.el"))
(add-to-list 'load-path (concat git-clones "logito"))
(add-to-list 'load-path (concat git-clones "marshal.el"))
(add-to-list 'load-path (concat git-clones "pcache"))
(require 'gist)

Tags: gist emacs git