Skip to content

Instantly share code, notes, and snippets.

@mgutz
Created April 1, 2015 15:46
Show Gist options
  • Save mgutz/f1387146c957a6bf2c48 to your computer and use it in GitHub Desktop.
Save mgutz/f1387146c957a6bf2c48 to your computer and use it in GitHub Desktop.

Revisions

  1. Mario Gutierrez created this gist Apr 1, 2015.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Get scope of current file

    ```
    atom.workspace.getActiveEditor().getGrammar().scopeName
    ```