Lua primitives: editor()
When lumail is used to compose a new message, or reply to an existing message, it will invoke your editor to do so.
If no editor has been set via editor() then the value of the environmental variable EDITOR will be used, if set.
This means the selection algorithm looks like this:
- If a path as been set with editor(), then use that.
- If there is an environmental variable named EDITOR set, then the value will be used.
- Otherwise /usr/bin/vim will be used.
This function has been available since version 0.08.