Last active
November 13, 2016 07:44
-
-
Save gdm85/ce95bc6677f2fa2696bfef9f121b1d4c to your computer and use it in GitHub Desktop.
D-Lang IDE with Atom: init.coffee
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
## 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