{"action":"opened","issue":{"url":"https://api.github.com/repos/amdt/sunset/issues/9","labels_url":"https://api.github.com/repos/amdt/sunset/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/amdt/sunset/issues/9/comments","events_url":"https://api.github.com/repos/amdt/sunset/issues/9/events","html_url":"https://github.com/amdt/sunset/issues/9","id":54463610,"number":9,"title":"Callback functions should start with a capital letter or s:function_name()","user":{"login":"frace","id":1101536,"avatar_url":"https://avatars.githubusercontent.com/u/1101536?v=3","gravatar_id":"","url":"https://api.github.com/users/frace","html_url":"https://github.com/frace","followers_url":"https://api.github.com/users/frace/followers","following_url":"https://api.github.com/users/frace/following{/other_user}","gists_url":"https://api.github.com/users/frace/gists{/gist_id}","starred_url":"https://api.github.com/users/frace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frace/subscriptions","organizations_url":"https://api.github.com/users/frace/orgs","repos_url":"https://api.github.com/users/frace/repos","events_url":"https://api.github.com/users/frace/events{/privacy}","received_events_url":"https://api.github.com/users/frace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-15T15:42:10Z","updated_at":"2015-01-15T15:42:10Z","closed_at":null,"body":"Hello,\r\n\r\nfirst of all thank you for your plugin, that fits perfectly in my setup where I already use f.lux/redshift.\r\nI tried to apply the provided callback functions in order to use different colorschemes at day and night like referenced in `:help sunset`:\r\n\r\n```\r\n    function! g:sunset_daytime_callback()\r\n        colorscheme 'Hemisu'\r\n    endfunction\r\n\r\n    function! g:sunset_nighttime_callback()\r\n        colorscheme 'Solarized'\r\n    endfunction\r\n```\r\n\r\nThere are some issues with the example.\r\nFirst of all the colorscheme declaration does not work because the colorscheme names are quoted. Quotes are not needed in that case.\r\n\r\nNext vim complains about the function declarations. The function names need to start with a capital letter or with `s:` instead of `g:`.\r\n\r\nIt would be nice if you could fix that in order to get colorschemes switched automatically. ;)\r\n\r\nCheers"}}