xahlee / xah-fly-keys

the most efficient keybinding for emacs
http://xahlee.info/emacs/misc/xah-fly-keys.html
484 stars 83 forks source link

change q key behavior: quit read-only buffers #50

Closed pierwill closed 6 years ago

pierwill commented 6 years ago

Allows q to be used for quitting read-only buffers (help buffers, etc.)

This helps a little with issues like #49.

xahlee commented 6 years ago

sorry, forgot to respond to this. am not sure about this, because then the q key have multiple purposes depending on current buffer status. also, q is at different position on qwerty or dvorak...

i never liked the emacs concept of quit-window myself. because it's buffer dependent. User has to know a what type of buffer is current. This makes it complex. (e.g. new user wouldn't know what buffer is read only) But also, it's is redundant. One command should do. (kill-buffer in gnu emacs, or xah-close-current-buffer here.)

i think the primary reason of emacs q is convenience, induced by kill-buffer having difficult key plus with a prompt to confirm even the buffer is already saved.

pierwill commented 6 years ago

Ah yes. Good call.

It took me a while to find SPC k j. My bad. 😇