Skip to content

Instantly share code, notes, and snippets.

@druzn3k
Forked from fxn/init.coffee
Created February 5, 2016 12:11
Show Gist options
  • Save druzn3k/a3fecb19a4cb74b5cb07 to your computer and use it in GitHub Desktop.
Save druzn3k/a3fecb19a4cb74b5cb07 to your computer and use it in GitHub Desktop.
Easy pipeline entry in Atom (Elixir)
# ~/.atom/init.coffee
atom.commands.add 'atom-text-editor', 'elixir:pipeline': ->
editor = atom.workspace.getActiveTextEditor()
editor.moveToEndOfLine()
editor.insertNewline()
editor.insertText("|> ")
# ~/.atom/keymap.cson
'atom-text-editor':
'cmd-|': 'elixir:pipeline'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment