Skip to content

Instantly share code, notes, and snippets.

@gdm85 gdm85/init.coffee
Last active Nov 13, 2016

Embed
What would you like to do?
D-Lang IDE with Atom: init.coffee
## main article: https://medium.com/@gdm85/atom-editor-building-with-f5-edc228034ec0
atom.commands.add 'atom-text-editor', 'dlang:save-run', ->
editor = atom.workspace.getActiveTextEditor()
editor.save()
atom.commands.dispatch(atom.views.getView(editor), 'atom-shell-commands:dfmt-run')
atom.commands.add 'atom-text-editor', 'dlang:save-build', ->
editor = atom.workspace.getActiveTextEditor()
editor.save()
atom.commands.dispatch(atom.views.getView(editor), 'atom-shell-commands:dfmt-build')
atom.commands.add 'atom-text-editor', 'custom:cut-line', ->
editor = atom.workspace.getActiveTextEditor()
editor.selectLinesContainingCursors()
editor.cutSelectedText()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.