Home / Tools / Emacs / Commonly useful Emacs commands and shortcut keys

Commonly useful Emacs commands and shortcut keys

Print Friendly, PDF & Email

Here is the list of commonly used commands in Emacs I often use in the daily basis.

Reload a current buffer or working file

Why is this important?

When you are editing a file in an instance of Emacs, it is also opening in the other Emacs window in the circumstance that these instances are on different machine. To work and load the latest content, we should reload the file which is opening in the current buffer before continuing to edit it.

In order to reload a file, you can use the macro M-x revert-buffer (if you want you can bind it to a key), or use a more practice trick: use C-x C-v RET. This tells to find an alternate file and by default, emacs suggests you the current file.

Select a region of text

To select a region, first you set a mark at one end of the text you want to select, and then move the cursor to the other end. To set the mark, you may either press C-SPC or C-@ or enter M-x set-mark-command

Rectangles

C-x SPC, then select your areas by moving the pointer using arrows key. Then use usual commands to delete.

http://mally.stanford.edu/~sr/computing/emacs.html

http://www.cs.au.dk/~chili/PBI/emacs.html

https://www.emacswiki.org/emacs/CopyAndPaste

Emacs shortcuts

Emacs shortcuts

comments

About Admin

programming all time and taking a bread for the lunch hahaha... When you are engaging your work, nobody can attract you doing another thing. Otherwise, should should move to other jobs or are not interested in your job enough.