Insert shebang extension for Emacs

Often while writing a BASH or a Python script we need to insert a header line called a shebang line. Although not mandatory but most people like it. It tells the program loader which interpreter to use when the script is executed. I personally hate to write this line for every new script. How about Emacs insert it automatically for you depend upon file extension?

Continue reading