I recently moved from Code::Blocks to Emacs to write C code.
The one thing I don't like (because it takes too much time and effort for a simple and repetitive task) is the fact that I can't compile/build the code from within the software itself. So in order to compile, link and run my code I have to switch between Emacs and the terminal.
However, my professor said to me that I should be able to compile from Emacs itself by calling a buffer as a terminal, then compile and run the code like I would on my Linux terminal.
I've been searching on how to do this quite a bit now, but still couldn't figure it out. So I guess my question is: how can I compile and run my C code from within Emacs like I would with the terminal?
C-h rfollowed by
i compiletakes you there.