Setup options and keymaps in functions to avoid global variables