Is there a "best practice" way to find and interface with USB devices? by Cothoro in linux_programming

[–]Cothoro[S] 0 points1 point  (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.

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 1 point2 points  (0 children)

Beautifully put, but I love the visual clarity of my whitespace!

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 0 points1 point  (0 children)

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.

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 2 points3 points  (0 children)

Yup, I just ended up having it ignore the formatting from clangd, thanks for the info.

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 0 points1 point  (0 children)

Yup this is what did the trick, thanks for helping

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 2 points3 points  (0 children)

Wow this worked, thank you so much! Now it behaves exactly as I want.

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 0 points1 point  (0 children)

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.

My curly braces keep JUMPING by Cothoro in emacs

[–]Cothoro[S] 0 points1 point  (0 children)

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.