I use emacs to mostly code in c++. Is there any way to add a particular piece of code snippet to every new file opoened in Emacs.
For eg: Suppose i want to create a new file in emacs with name abc.cpp and emacs by default initiates the file with following lines
using namespace std;
int main(){
return 0;
}