Change alias l such that it's not global.
Add setting of $EDITOR  environment variable.