Emacs shortcuts revisited

In this post I wrote down a fes Emacs shortcuts.

Today I’m trying again, but a little more organised.

 

A few defenitions:

buffer : a representation of a file in memory of emacs. You edit a buffer

frame : the whole of windows/menu’s/mini-buffer. On a graphical interface you can have multiple frames. On a text terminal you can only have 1 frame.

mark : a position set by C-<space>. The region in the buffer between point and mark is (for example) the region which will be copied/deleted/..

point : the place where the cursor is (actually it’s just before the character the cursor is blinking on)

Window : the view of the buffer on the display

Movement in a buffer:

C-b : move one character back

C-f : move one character forward

C-n : Move a line down

C-p : Move a line up

M-b : Move one word back

M-f : Move one word  forward

M-< : Start of the buffer

M-> : End of the buffer

Editing:

C-<space> : Set mark

M-w : copy the text between the mark and the point

C-y : Insert/Yank the copied text into the buffer at the point

C-w : Cut the text between mark and point

Buffers:

C-x b : switch buffer

C-x B : Display a list of buffers in emacs

C-x 1 : close all windows except the current one

Windows : 

M-x split-window-horizontally : Split the curent window horizontally

M-x split-window-vertically : Split the current window vertically

C-x o : Switch to another window (loops through all buffers)

C-x 1 : Kill all windows except the current one

Frames : 

C-x 5 2 : Create a new frame

C-x 5 0 : delete frame

M-x iconify-frame : Iconfys the current frame (this is on the linux level)

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *