This article will be solely about serving you with the best Emacs commands and Emacs shortcuts.

Certainly, Emacs is one of the most common text editors we have around these days. Its amazing features, for example, extensibility, customizability, plugins, and self-documentation make it an excellent tool among developers. In addition, Emacs is also called a real-time display text editor.

Moreover, it is a free/libre editor that is compatible with more than one platform. In other words, Emacs supports the Windows, macOS, BSDs, and GNU/Linux operating systems.

It’s interesting to know that almost all keystrokes in emacs yield out into a command. That is to say; a command is always called upon any time users press a key or more keys together.

So, therefore, there are about 3000 emacs commands and the most popularly used commands got a key shortcut. For example, searching the text, opening and closing a file, moving the cursor, etc.

1. Kill-line

This is used for getting rid of every character from the cursor to the end of the line.

Ctrl + k

BashCopy

Features:

  • In addition, all you need do is to press “Ctrl+k.”

2. Backward-kill-word

Its duty is to delete the previous word.

Alt + backspace

BashCopy

Features:

Most importantly, users only need to enter “Alt+backspace“.

3. Kill-word

This does the deleting of words to the right.

Alt + d

BashCopy

Features:

Furthermore, press “Alt+d” to activate this.

4. Scroll-down-command

To sum up, press “Alt+v” to page up.

Alt + v

#dev tips #emacs commands #emacs shortcuts

Top 50 Emacs Commands and Emacs Shortcuts
1.25 GEEK