DEV Community

Masaki Haga
Masaki Haga

Posted on • Edited on

1 1

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

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)
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.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay