Skip to content

Instantly share code, notes, and snippets.

@mads-hartmann
mads-hartmann / init.js
Created November 23, 2015 13:54
Just-one-space (from Emacs) implementation for Atom
"use babel";
atom.commands.add('atom-text-editor', 'hartmann:just-one-space', () => {
const editor = atom.workspace.getActiveTextEditor();
if (!editor) {
return;
}
const changes = editor.getCursorBufferPositions().map((point) => {