Can anyone help me I would like the editor to open with shebang already at the top.
The following code throws a shebang at the beginning of any blank TextEditor that is opened:
atom.workspace.observeTextEditors (editor) -> return unless editor.getText() == "" editor.buffer.insert([0,0], "#!/bin/")
I hate being so totally ignorant. Where do I place the above code. I am totally new at this. Thanks
Drop it into your
Thanks that worked. So much to learn!!