defunkt / gist.el

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

Setting auth information explicitly with emacs variable #102

Closed dieggsy closed 7 years ago

dieggsy commented 7 years ago

I'm not convinced I should have to store auth info in a gitconfig file - it would be nice to have the option to provide it directly with a set of variables (something like gist-username, gist-token).

sigma commented 7 years ago

you can already do that by customizing variable gh-profile-alist and using fields :username and :token

dieggsy commented 7 years ago

Oh, cool - what's the recommended way to do this in elisp (i.e. without customize)? I want to get my token like this so as to not have to store it in plain text: :token (password-store-get "my/github/token)"

dieggsy commented 7 years ago

Ah, nevermind - I was able to setf it.