blob: 3242977ac5d3d89b15bac3ddde9e1d25879aa02e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
.:: Emacs ::.
--------------------------------------------------------------------------------
# toc
------
|help|
|window|
|rect|
|mass|
|grep|
|lisp|
|narrow|
# help
=======
C-h f describe function
C-h b list buffer available keymaps
<kseq> C-h list possible keymaps with <kseq>
eg C-x C-h -> list keymaps beginning with C-x
# window
=========
C-x 0 kill focused window
C-x 1 kill all other windows
C-x 2 split horizontal
C-x 3 split vertical
# block/rect
=============
C-x <SPC> activate rectangle-mark-mode
M-x string-rectangle <RET> insert text in marked rect
# mass edit
============
C-x h mark whole buffer (mark-whole-buffer)
M-x delete-matching-line <RET> delete lines matching regex
M-x % search & replace region (query-replace)
C-M-x % search & replace regex (query-replace-regexp)
# grep
=======
M-x find-grep <RET> run find-grep result in *grep* buffer
n/p navigate next/previous match in *grep* buffer
# lisp mode
============
M-x lisp-interaction-mode activate lisp mode
C-M-x evaluate top expr under cursor
C-x C-e eval-last-sexp
C-u C-x C-e eval-last-sexp and prints result in current buffer
# narrow
=========
C-x n n show only focused region (narrow)
C-x n w show whole buffer (wide)
--------------------------------------------------------------------------------
Vim:sts=2:et:tw=80:cc=80:fo+=t:ft=help
|