Skip to content

Instantly share code, notes, and snippets.

@fxn
Created January 31, 2016 10:59
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fxn/b810a536b33489168fb9 to your computer and use it in GitHub Desktop.
Save fxn/b810a536b33489168fb9 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