If you've been using Emacs for a long time and you use the arrow keys, you won't be able to edit the file.

sirasolra profile image Masaki Haga ・1 min read

A weak person who always uses arrow keys to control the cursor was not qualified to edit the file. (I was inspired by this article.)

(global-set-key [up] 'kill-emacs)
(global-set-key [down] 'kill-emacs)
(global-set-key [left] 'kill-emacs)
(global-set-key [right] 'kill-emacs)
Behavior Key Binding How to remember
Move Cursor 1 Line Up C-p preverious
Move Cursor 1 Line Down C-n next
Move Cursor 1 Character to Left C-b backward
Move Cursor 1 Character to Right C-f forward

Note: This is a joke. Unlike save-buffers-kill-terminal, which is assigned to C-x C-c, kill-emacs forces Emacs to drop without warning even if it has not been saved. I will not be responsible for the loss of important edited data if automatic backup is turned off.


Editor guide