Created
January 31, 2016 10:59
-
-
Save fxn/b810a536b33489168fb9 to your computer and use it in GitHub Desktop.
Easy pipeline entry in Atom (Elixir)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.atom/init.coffee | |
atom.commands.add 'atom-text-editor', 'elixir:pipeline': -> | |
editor = atom.workspace.getActiveTextEditor() | |
editor.moveToEndOfLine() | |
editor.insertNewline() | |
editor.insertText("|> ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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