You also probably want the following above this line:

```coffee
editor.transact ->
```

That way it can be undone atomically, might want to add a spec for that.