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 most popularly used commands got a key shortcut. For example, searching the text, opening and closing a file, moving the cursor, etc. This article will be solely about serving you with the best emacs commands and emacs shortcuts.
This is used for getting rid of every character from the cursor to the end of the line.
Ctrl + k
Its duty is to delete the previous word.
Alt + backspace
Most importantly, users only need to enter “Alt+backspace“.
This does the deleting of words to the right.
Alt + d
Furthermore, press “Alt+d” to activate this.
To sum up, press “Alt+v” to page up.
Alt + v
In short, Everything you need to do to page down is to enter “Ctrl+v“.
Ctrl + v
This is simply the use of “Ctrl+b” to move the cursor a character towards the left direction.
Ctrl + b
This does directly the opposite of what the above command does.
Ctrl + f
Here, for example, you are allowed to use “Ctrl+End” or “Ctrl+>” to put an end to a document.
Ctrl + End / Ctrl + >
Users are free to use “Alt+f” to move the cursor towards the right side of a word.
Alt + f
This does the same function as the forward-word command but in the opposite direction.
Alt + b
This is all about pressing “Ctrl+Home” or “Alt+<” in getting to the beginning of the file.
Ctrl + Home / Alt + <
Yank in this regard simply means to paste something already copied. In addition, you perform this by entering “Ctrl+p“.
Ctrl + p
So, therefore, you can simply press “Ctrl+w” to cut anything of your interest.
Ctrl + w
You can simply use “Alt+w” to copy anything of your choice.
Alt + w
To perform undo, simply press “Ctrl+_“.
Ctrl + _
This is done for closing a file.
Ctrl + x k
This involves entering “Ctrl+x Ctrl+s” to save a file.
Ctrl + x Ctrl + s
Press “Ctrl+x Ctrl+f” whenever you want to save a file.
Ctrl + x Ctrl + f
It is simply about using “Ctrl+xh” for selecting all texts.
Ctrl + x h
This is performed for splitting the window up/down. In addition, you will need to press “Ctrl+x2” to activate this.
Ctrl + x 2
Splitting window side by side is simply done by pressing “Ctrl+x3“.
Ctrl + x 3
This command is used for getting rid of all split panes.
Ctrl + x 1
This involves the use of “Ctrl+xo” for moving the cursor to the other pane.
Ctrl + x o
You will need to press “Alt+x” to activate this mode. In addition, cua-mode serves the purpose of using standard keys to copy, cut, and paste.
Alt + x
This is simply the use of “Ctrl+n” to open a new file.
Ctrl + n
Press “Ctrl+shift+s” any time you want to perform Save-As.
Ctrl + shift + s
Simply use “Alt+`” to get to the next window.
Alt + `
This does the direct opposite of the previously explained command above.
Ctrl + ~
This is all about using “Ctrl+⇟PageDown▽” for getting to the next tab.
Ctrl + ⇟PageDown▽
This is simply the use of “Ctrl+⇞PageUp△” to get back to the previous tab.
Ctrl + ⇞PageUp△
This is simply the use of “Alt+w” for taking out spaces or tabs around the cursor.
Alt + w
This shortcut, “Alt+q“, is used for hard wrapping or unwrapping text users have changed.
Alt + q
This is simply the use of “Alt+/” for changing capitalization.
Alt + /
This is simply the use of “Ctrl+xb” for selecting another buffer.
Ctrl + x b
This involves using “Ctrl+x Ctrl+b” for listing the entire buffers.
Ctrl + x Ctrl + b
Users use this to navigate to the next buffer. Furthermore, all you need do is to enter “Ctrl+x [right]” to perform this.
Ctrl + x[right]
This is almost similar to the command explained above but with some slight difference.
Ctrl + x[left]
You need to enter “Ctrl+h?” to view all the commands in other to get help on Emacs.
Ctrl + h ?
This is simply the use of “Ctrl+hf” to describe a given function.
Ctrl + h f
In short, simply press “Ctrl+hv” to describe a variable.
Ctrl + h v
This command is used for describing mode. In addition, the binding keys for this are “Ctrl+hm“.
Ctrl + h m
This command helps in telling the Emacs users all they need to know about the syntax.
Ctrl + h s
To sum up, this is simply the use of “Ctrl+hb” to acquire every detail about key bindings for the current buffer.
Ctrl + h b
This is used for describing a specific key binding. In addition, all you need do to perform this is to press “Ctrl+hk“.
Ctrl + h k
This is simply the use of “Ctrl+xd” for opening directory and entering the dired mode.
Ctrl + x d
This is specifically for opening directory in other window.
Ctrl + 4 d
This is simply the use of “Ctrl-x 5 d” to open a directory in another frame.
Ctrl + 5 d
This is simply used for taking the cursor to the starting point of a line.
This shortcut is different from the one discussed above.
In short, this is simply used for creating bookmarks.
Ctrl-x r m
Understanding and knowing how these amazing commands and shortcuts work in Emacs is key but also knows that practice makes perfection. Look at each of them carefully and familiarize yourself with them using Emacs.
Obtaining any skill means that one will continuously upgrade it to become professional. It’s impossible…
With the keyboard shortcut "Command(⌘) + Option(⌥) + Delete(⌫)" you can completely remove a file…
Transportation management software is used by organizations to administer, control, and manage the transportation aspect…