gedit tweaks and fixes