Author of lem.el, a lemmy client for emacs: https://codeberg.org/martianh/lem.el
“Entomology (from Ancient Greek entomon ‘insect’, and -logia ‘study’)[1] is the scientific study of insects, a branch of zoology. In the past the term insect was less specific, and historically the definition of entomology would also include the study of animals in other arthropod groups, such as arachnids, myriapods, and crustaceans. This wider meaning may still be encountered in informal use.”
you could take ask on the repo or ask the dev, they’re obvs active on the fediverse. (poss relevant: https://github.com/superseriousbusiness/gotosocial/issues/1468.)
is it not possible to just search in the code of spacemacs if you know it can do it? seems like your best bet. if you can’t find it searching, ask on the repo? otherwise, as others have said, i wouldn’t think it’s a simple thing to achieve. best to see if you can reuse the work others have already done.
i also fixed authentication for the 0.19 release, but when your instance actually upgrades (lemmy.ml already has, for testing), it will require you to delete the lem.plstore file in .emacs.d/ and log in again with your password.
& by all means holler if you run into authentication issues during the transition.
ah its back up now, thanks.
i was going to test these new changes out for my client, but it seems that https://voyager.lemmy.ml is down?
lem.el also implements a client, similar in design to mastodon.el. i did the api layer so that others could implement other kinds of interfaces such as a gnus backend if they desired.
does that really matter? its clear that lem.el is an Emacs library, and is thus named as such (.el), and is thus not a standalone piece of software. I really don’t think its a problem. there are no Emacs libraries with the same name.
from a quick check, i have C-p and C-S-B working, but C-n and C-s and (many i think) others not working. ff 114 on linux.
made some progress. mainly spent time working on getting the sorting types and listing types going, so you can cycle between them on the go. v basic display of post details in byline, etc., but that can easily be spruced up by pulling code from mastodon.el. + markdown rendered posts/comments, uwu!
https://codeberg.org/martianh/lem. the readme has a rough todo list.
logging in and loading lem as package is still pretty rough, or kinda broken. but i’ll get it sorted soon.
still gotta build a comments tree also, that’s a biggie.
can you see comments that way? you just subscribe to communities i imagine?
https://codeberg.org/martianh/lem has some basics, functions returning plain JSON. i didn’t do any auth, but if its oauth and so similar to mastodon.el, we cd also just move its auth code into the fedi.el library. and fedi-http.el is already set up to handle auth tokens.
discovering lemmy’s query parameters is quite a pain for me, as i don’t know rust.
thanks for the link. so https://github.com/LemmyNet/lemmy/blob/main/src/api_routes_http.rs shows the paths and params, i tried them in a rest client and it’s no too hard to follow.
the mastodon.el http layer isn’t great, but it could be v quickly adapted for this case.
I have quite a few endpoints working now, each mostly just with the basic options implemented, and its easy to add endpoints with a handy macro i wrote. There are still quite a few quirks with lemmy itself that i’m struggling to work out, like how to search for my second account on another instance and actually have it appear in results. I might ask in a support room. The type-heavy rust and ts code is super foreign to me, it’s also very large. Moreover, the various documentation links, another one is https://join-lemmy.org/api/classes/LemmyHttp.html, sometime contradict each other. Maybe having the basics down I cd start on some necrco diy interface. [posted and edited via lem.el]
i need to branch out with my sources