How to set .jl (Julia) as the default file format while opening a new file in Atom (Juno)

Copy paste the following code into your file:

atom.workspace.observeTextEditors (editor) ->
    original = editor.getGrammar()
    if original? and original is atom.grammars.grammarForScopeName('text.plain.null-grammar')

You should be able to find the file by going to Files –> Init Script..

Leave a Reply