Even though you've been using Emacs for a long time, you usually use arrow keys, you shouldn't edit the file.
Masaki Haga
Posted on March 25, 2020
Stupid people who always use arrow keys to control cursors are not entitled 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.
💖 💪 🙅 🚩
Masaki Haga
Posted on March 25, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.