remove pointless getenv call
add replace/query-replace bindings

under consistent prefix
function to join to next line with one space