defunkt / gist.el

Yet another Emacs paste mode, this one for Gist.
550 stars 90 forks source link

Permit uploading and reading of gists from github enterprise installation #80

Closed vxe closed 7 years ago

vxe commented 8 years ago

I would like to use gist.el with enterprise github. The default behavior appears to read and upload gists to github.com. I do not see a configuration option exposed in 'customize-group'. I would like to point gist.el to my enterprise github installation as is done here https://github.com/defunkt/gist

Setting GITHUB_URL like this does not appear to work

(setenv "GITHUB_URL" "https://GITHUB_ENT_URL")

The following change to ~/.gitconfig doesn't work as it attempts to make a connection to api.github.com with my enterprise login name and fails

[github]

    url = GITHUB_ENT_URL
vxe commented 8 years ago

gitconfig typ

vxe commented 8 years ago

one more typo

corpix commented 8 years ago

Hi. gist.el uses gh api module for emacs. But readme of this projects does not describe how to use this extensions with github enterprise. Probably this comment in issue could help you https://github.com/sigma/gh.el/issues/12#issuecomment-14971939

sigma commented 7 years ago

Yes, it should just work. Use something like this:

(eval-after-load 'gh-profile
  '(add-to-list 'gh-profile-alist
    `("work" :url "https://ghe.work/api/v3"
      :remote-regexp ,(gh-profile-remote-regexp "ghe.work"))))

where ghe.work is the DNS name of your Github Enterprise instance