To install this package, run in Emacs:
M-x package-install RET srht RET
GNU Emacs sourcehut API client.
git clone https://git.sr.ht/~akagi/srht.el srht cd srth guix package -f guix.scm
srht
depends on the HTTP library plz
which is available in ELPA. After
installing it, place files from /lisp folder in load-path
.
To use this client, you need to generate a personal access token. This token will have unrestricted access to all sr.ht APIs and can be used like a normal access token to authenticate API requests.
After creating the token:
(setq srht-token TOKEN)
It is also possible to store the token using auth-source.el
, the host must be
set to sr.ht.
machine sr.ht password TOKEN
You also need to set srht-username:
(setq srht-username USERNAME)
Function | Description |
---|---|
srht-git-repo-update |
Update information for git repository |
srht-git-repo-delete |
Delete existing git repository |
srht-git-repo-create |
Create git repository |
srht-paste-link |
Kill the link of the selected paste |
srht-paste-delete |
Detete paste with SHA |
srht-paste-region |
Paste region or buffer to sourcehut |
GPLv3