Use atom.views.getView for editor view
Use editor instead of buffer