DEV Community

loading...

Even though you've been using Emacs for a long time, you usually use arrow keys, you shouldn't edit the file.

silasolla profile image Masaki Haga Updated on ・1 min read

A stupid person who always uses arrow keys to control cursors 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)
Enter fullscreen mode Exit fullscreen mode
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.

Discussion (0)

Forem Open with the Forem app