dgtized/github-clone.el

Store authentication data in `~/.emacs.d`

swsnr opened this issue · 1 comments

I don't think that the Git configuration file is the right place to store authentication data. It's git's configuration after all, and not that of an Emacs extension. FWIW, hub doesn't do this either, and saves its token to ~/.config/hub instead.

Can I customize this package to store the username and token in a file within ~/.emacs.d/?

github-clone is actually dependent on gh.el for the decision on where to store the token. If there is a way to hint gh.el to store it elsewhere then I can add documentation for that method, but at the moment it just uses whatever gh.el's default is. See https://github.com/sigma/gh.el, and specifically https://github.com/sigma/gh.el/blob/master/gh-auth.el for more details.