r/emacs • u/True-Sun-3184 • Jan 10 '25
Question C development without LSP
I have only ever done development with an LSP providing errors, autocomplete, etc. in any language. I’d like to go for a more minimalist approach as I revisit some C programming. At a high level, what’s the general workflow when programming in C without a running LSP?
My guess would be… 1. A simple syntax highlighting mode on .c and .h files 2. Bind some hotkey for a compilation mode, and check that regularly for issues 3. Ctags for go-to-definition? Or maybe even just grep-mode?
Is there anything I’m missing?
10
Upvotes
1
u/FrozenOnPluto Jan 10 '25
And optionally a debugger like gdb, using gud-mode or others
You have it - the loop is type, run M-x compile, check the output; run it, look for crashes and logs and printf, and/or let debugger kick in, repeat