Long Reference Card pdf Download

Transcript
C-S-DEL
same as previous
C-a C-k C-k
kill to end including newline
C-1 C-k
kill next 4
C-u C-k
kill next 2
C-2 C-k
kill to beginning of previous
M-- C-k
merge current line with previous
M-^
merge next line with current
C-u M-^
same as previous
C-n M-^
insert new after current and indent (see ”newline” above)
forward
backward
delete (see ”delete” above)
kill (see ”kill” above)
transpose
information of current
list properties of current in Help buffer
C-o
keep text following point at same column (see ”newline” above)
M-x goto-char RET <N> RET
list names of charsets
M-x list-characters-sets
insert null
C-q 0 RET
insert space
C-q SPC
insert space using octal value 40
C-q 40 RET
use hex for C-q
M-x set-variable RET read-quoted-char-radix 16
insert space using hex value 20
C-q 20 RET
use decimal for C-q
M-x set-variable RET read-quoted-char-radix 10
insert space using decimal value 32
C-q 32 RET
insert 8 null characters
C-u 8 C-q 0 RET
insert 8 zeros
C-u 8 C-u 0 RET
C-M-o
same as previous
C-[ C-o
when not empty line, remove all empty lines below current
C-x C-o
when only empty line, remove all empty lines
C-x C-o
when empty, remove all but one empty lines
count
count
count
count
lines
lines
lines
lines
in region
in page
in buffer
from point forward
C-x C-o
M-=
C-x l
C-x h M-= C-u C-SPC
C-SPC M-> C-x C-x M-=
same as previous
M-> C-x C-x M-=
display number
M-x what-line
transpose with previous
C-x C-t
swap with line of mark (see ”mark” above)
C-0 C-x C-t
alphabetically (see ”sort” below)
M-x sort-lines
reverse order in region
M-x reverse-region
show lines matches in buffer (see ”occur” below)
count matches
delete matches to end of buffer
delete all lines after point
M-x occur
M-x how-many
M-x flush-lines
M-x flush-lines RET RET
keep matches to end of buffer, delete the rest
M-x keep-lines
keep matches in region, delete rest
C-SPC C-SPC C-2 C-SPC M-x keep-lines
narrow
C-a C-SPC C-e C-x n n
change file to UNIX style line endings
C-x RET f unix RET
change file to DOS
C-x RET f dos RET
change file to Mac
C-x RET f dos RET
change file to UTF-8
C-x RET f utf-8 RET
show line number in mode line
M-x line-number-mode
change if long lines fold or are truncated
M-x toggle-truncate-lines
change if long lines are wrapped at word boundary
M-x toggle-word-wrap
character
same as previous
visit Nth character in buffer
C-f
C-b
C-d
C-1 C-d
C-t
C-x =
C-u C-x =
M-x describe-char
word
forward
M-f
same as previous
M-<right>
same as previous
C-<right>
backward
M-b
same as previous
M-<left>
same as previous
C-<left>
kill forward
M-d
kill backward
C-DEL
kill backward
M-DEL
transpose
M-t
mark
M-@
mark next 100
C-u 100 M-@
mark previous 3
M-- 3 M-@
count for buffer
M-< M-x how-many RET \w+ RET
same as previous
C-x h M-=
make hyphens word character
M-x modify-syntax-entry RET - w RET
make underscores a word character
M-x modify-syntax-entry RET _ w RET
capitalization
lowercase next word
M-l
lowercase previous word
M-- M-l
lowercase next 4 words
C-u M-l
uppercase next word
M-u
uppercase previous word
M-- M-u
uppercase next 2
C-u 2 M-l
capitalize next
M-c
capitalize previous
M-- M-c
capitalize next 2
C-u 2 M-c
permanently enable
M-x enable-command RET downcase-region RET
lowercase region
C-x C-l
permanently enable
M-x enable-command RET upcase-region RET
uppercase region
C-x C-u
capitalize region
M-x capitalize-region
sentence
beginning
M-a
end
M-e
mark
M-x mark-end-of-sentence
kill forwards to end
M-k
kill backwards to beginning
C-x DEL
transpose
M-x transpose-sentences
fix spaces forward with query and replace
M-x repunctuate-sentences
paragraph
forward
backward
mark
fill
fill and full justify
fill all in region
fill all region together as one
M-}
M-{
M-h
M-q
C-u M-q
M-x fill-region
M-x fill-region-as-paragraph
fill region as separate
M-x fill-individual-paragraphs
set fill column to current point
C-x f RET
set fill column to 72
C-x f 72 RET
same as previous
C-u 72 C-x f
kill to beginning
M-x backward-kill-paragraph
kill to end
M-x kill-paragraph
kill entire
M-{ M-x kill-paragraph
kill entire
M-h C-w
kill entire but don’t delete (copy)
M-h M-w
transpose
M-x transpose-paragraphs
center
M-o M-S
justify region to the left
M-x set-justification-left
justify region to the right
M-x set-justification-right
justify region to full width
M-x set-justification-full
justify region to the center
M-x set-justification-center
unjustify region
M-x set-justification-none
alphabetically
M-x sort-paragraphs
in reverse
C-u M-x sort-paragraphs
expect leading space rather than empty lines
M-x paragraph-indent-text-mode
automatically fill at the end of the line
M-x auto-fill-mode
automatically fill entire paragraph after each edit
M-x refill-mode
distinguish intentional newlines from filling
M-x use-hard-newlines
increase left margin of region by one column
C-x TAB
increase left margin of region by 4 columns