Hot Reset

-- Hot Reset
-- Apply all config changes w/o restarting. 
-- Saves all open files, 
-- resets and reloads open files
function hotreset()
  io.save_all_files()
  reset()
  for n=1, (#_BUFFERS) do
    view:goto_buffer(1, view, true)
    io.reload_file()
  end
end
keys['cal'] = hotreset

Edited on Friday, May 16th 2014 at 12:54 PM.