@mikkel-larsen You might be able to move that workaround to ~/.editrc instead of including it in your code:
~/.editrc