misc function and toggle-truncate-lines keybinding