M-x compile will allow you to compile your
program while you're inside of Emacs. Emacs will prompt you for the
command to use to compile your code. By default, this command is
make -k which is what we want.
M-! will allow you to type in a shell command, and
Emacs will run it, and display the output of the command.
C-x 2 splits windows vertically.
C-x 3 splits windows horizontally.
C-x 1 closes all windows except the one your cursor is
C-x o switches to a different window.
C-x b switches to a different buffer. This is different
from a window. A good way to think of a buffer is it’s like
a tab in a web browser.
C-x C-f opens another file in Emacs. If you want to
switch back to the file you were working on before running this
command, use C-x b.
M-x shell opens a shell inside of Emacs.
M-x term opens a terminal (basically it’s a
better shell) inside of Emacs. However, in order to execute any
Emacs command that begins with C-x,
from within the terminal, you need to use C-c instead.
This means to switch out of this window, use C-c o
rather than C-x o.