Emacs Minipost Pt. 4
Open the Emacs. You should see the following screen.
Remove these two lines (or comments) from the scratch pad and type the following code.
P.S. You might face difficulty while adding the indentation. For now, stay with me and type spaces literally instead of tabs.
#include <stdio.h> int main(int argc, char** argv) { printf("hello, world\n"); return 0; }
We know how to save the file, right? Yes, ctrl-x ctrl-s. Press. But, we haven't created the file yet. So, Emacs first ask to create the file and then will save the content of it.
Here, instead of typing the name of the file, you can type the full path if you don't want to save at the default location that Emacs is suggesting and then press Enter.
Congratulation on creating and saving the files using Emacs!
Summary: Now you know how to create and save the file from Emacs only!



