Skip to content

Instantly share code, notes, and snippets.

@emschwar
Created October 13, 2011 04:31
Show Gist options
  • Save emschwar/1283383 to your computer and use it in GitHub Desktop.
Save emschwar/1283383 to your computer and use it in GitHub Desktop.
Testing gh.el with ~/.emacs24.d/init.el
(setq ems-netrc (netrc-parse "~/.netrc"))
(require 'gist)
(setq ems-github-netrc (netrc-machine ems-netrc "github" t))
(setq gist-authenticate-function 'gist-basic-authentication)
(setq gist-user-password (netrc-get ems-github-netrc "password"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment