New to Atom, change startup / default language


#1

Where would I change the default language from text to python?

Thanks Randy


#2

I don’t think there is such a function in Atom, I think it detects the language when you save the file and give it a file extension


#3

Thanks @Cronax42 , just curious if possible.

Randy


#4

Try putting this in your init script:

atom.workspace.observeTextEditors (editor) ->
  unless editor.getPath()
    editor.setGrammar(atom.grammars.grammarForScopeName('source.python'))

Force grammar usage for file extension
#6

@postcasio will give it a shot, just upgrading Atom

Thanks