DaidalosCheung / EmacsNote

0 stars 0 forks source link

Common Shortcuts #1

Open DaidalosCheung opened 6 years ago

DaidalosCheung commented 6 years ago

C-x Space = Mark Set M-w = copy C-y = paste C-g = Quit C-x C-f = Find and Open File M-< M-> C-x u = Undo C-e = Go to the End of Line C-x C-s Save C-k = Kill the Rest of Current Line C-a = Move to the Start of the Line C-x k = Close File C-x b = Switch Buffers C-x C-b = Get a List of Buffers C-/ = undo M-g M-g = Go to line

Frames Specific: C-x 2 = Horizontally Split Current Frame C-x 3 = Vertically Split Current Frame C-x 0 = Close Current Frame C-x o = Walk Through Frames C-l = Make current line to be the central of the Frames

Buffer Specific: C-x b = Switch Buffer C-x C-b = List All Buffer C-x k = Kill Buffer

Creat a File or Directory: C-x C-f Name of File or Dir: Emacs will create a temporary buffer for the specified file or dir if it does not exist. It's up to us to save it onto disk.

Editing: M-; = make selected text as annotation. If the cursor is in the middle of sentence, the annotation will go to the end and start a new annotation.

DaidalosCheung commented 5 years ago
M-a (M-e) = move forward by sentence (move backwards by sentence)
M-v (C-v) = move forward (backward) by screen

C-s (C-r) = Searching forward (backward)
    Once searching…
         Space = replace & search
         '  = replace & stay here
         ^ = backup to previous
         Delete = ignore and go on
         ! = replace all remaining
         Return = exit

Query Replace:
M-% = start query replace
C-u M-% = query replace the word