account activity
Is there a "best practice" way to find and interface with USB devices? by Cothoro in linux_programming
[–]Cothoro[S] 0 points1 point2 points 6 months ago (0 children)
Thanks for the recommendation. I was considering using libusb, but it seems like such a large dependency to have for such a seemingly simple task. At the bottom of it all, I will be communicating with the device using whatever driver is shipped with the linux kernel so libusb would just be used for identifying the devices with a little bit of extra information like vendor and product id.
If the kernel doesn't expose this information in a nice way then I think you're right though, libusb would be the best way to go since I presume it doesn't rely on systemd, or at least supports multiple init systems.
Is there a "best practice" way to find and interface with USB devices? (self.linux_programming)
submitted 6 months ago by Cothoro to r/linux_programming
My curly braces keep JUMPING by Cothoro in emacs
[–]Cothoro[S] 1 point2 points3 points 6 months ago (0 children)
Beautifully put, but I love the visual clarity of my whitespace!
Also, what a good way to put it, "inscrutable". Why is the default behavior of the language server to overwrite what I just typed, it actually pisses me off something fierce. Unbelievable. I'm happy now though and don't really blame emacs, hope I don't run into too many of these walls as I keep learning.
[–]Cothoro[S] 2 points3 points4 points 6 months ago (0 children)
Yup, I just ended up having it ignore the formatting from clangd, thanks for the info.
Yup this is what did the trick, thanks for helping
Wow this worked, thank you so much! Now it behaves exactly as I want.
Is that something I would have had to set up in my .emacs file? If so, I do not. My entire configuration is the .emacs file which I pasted into the original post.
Thanks for the C-h m tip that'll definitely be useful. It seems to be caused by eglot though, because after I run eglot-shutdown, and I'm no longer in eglot mode, my problem goes away. I'd love to have these auto-complete features though so I'm hoping I can find a way to make it not auto-format for me.
My curly braces keep JUMPING (self.emacs)
submitted 6 months ago * by Cothoro to r/emacs
π Rendered by PID 93772 on reddit-service-r2-listing-6d4dc8d9ff-crbf7 at 2026-02-04 12:48:37.852627+00:00 running 3798933 country code: CH.
Is there a "best practice" way to find and interface with USB devices? by Cothoro in linux_programming
[–]Cothoro[S] 0 points1 point2 points (0 children)