mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 15:31:36 +01:00
Emacs sheet now uses the proper prefix
This commit is contained in:
parent
4dd55105d2
commit
574deeabc0
@ -6,59 +6,59 @@
|
|||||||
# Basic usage
|
# Basic usage
|
||||||
|
|
||||||
Indent Select text then press TAB
|
Indent Select text then press TAB
|
||||||
Cut CTRL-w
|
Cut C-w
|
||||||
Copy ALT-w
|
Copy M-w
|
||||||
Paste ("yank") CTRL-y
|
Paste ("yank") C-y
|
||||||
Begin selection CTRL-SPACE
|
Begin selection C-SPACE
|
||||||
Search/Find CTRL-s
|
Search/Find C-s
|
||||||
Replace ALT-% (ALT-SHIFT-5)
|
Replace M-% (M-SHIFT-5)
|
||||||
Save CTRL-x CTRL-s
|
Save C-x C-s
|
||||||
Save as CTRL-x CTRL-w
|
Save as C-x C-w
|
||||||
Load/Open CTRL-x CTRL-f
|
Load/Open C-x C-f
|
||||||
Undo CTRL-x u
|
Undo C-x u
|
||||||
Highlight all text CTRL-x h
|
Highlight all text C-x h
|
||||||
Directory listing CTRL-x d
|
Directory listing C-x d
|
||||||
Cancel a command CTRL-g
|
Cancel a command C-g
|
||||||
Font size bigger CTRL-x CTRL-+
|
Font size bigger C-x C-+
|
||||||
Font size smaller CTRL-x CTRL--
|
Font size smaller C-x C--
|
||||||
|
|
||||||
# Buffers
|
# Buffers
|
||||||
|
|
||||||
Split screen vertically CTRL-x 2
|
Split screen vertically C-x 2
|
||||||
Split screen vertically with 5 row height CTRL-u 5 CTRL-x 2
|
Split screen vertically with 5 row height C-u 5 C-x 2
|
||||||
Split screen horizontally CTRL-x 3
|
Split screen horizontally C-x 3
|
||||||
Split screen horizontally with 24 column width CTRL-u 24 CTRL-x 3
|
Split screen horizontally with 24 column width C-u 24 C-x 3
|
||||||
Revert to single screen CTRL-x 1
|
Revert to single screen C-x 1
|
||||||
Hide the current screen CTRL-x 0
|
Hide the current screen C-x 0
|
||||||
Move to the next screen CTRL-x o
|
Move to the next screen C-x o
|
||||||
Kill the current buffer CTRL-x k
|
Kill the current buffer C-x k
|
||||||
Select a buffer CTRL-x b
|
Select a buffer C-x b
|
||||||
Run command in the scratch buffer CTRL-x CTRL-e
|
Run command in the scratch buffer C-x C-e
|
||||||
|
|
||||||
# Navigation ( backward / forward )
|
# Navigation ( backward / forward )
|
||||||
|
|
||||||
Character-wise CTRL-b , CTRL-f
|
Character-wise C-b , C-f
|
||||||
Word-wise ALT-b , ALT-f
|
Word-wise M-b , M-f
|
||||||
Line-wise CTRL-p , CTRL-n
|
Line-wise C-p , C-n
|
||||||
Sentence-wise ALT-a , ALT-e
|
Sentence-wise M-a , M-e
|
||||||
Paragraph-wise ALT-{ , ALT-}
|
Paragraph-wise M-{ , M-}
|
||||||
Function-wise CTRL-ALT-a , CTRL-ALT-e
|
Function-wise C-M-a , C-M-e
|
||||||
Line beginning / end CTRL-a , CTRL-e
|
Line beginning / end C-a , C-e
|
||||||
|
|
||||||
# Other stuff
|
# Other stuff
|
||||||
|
|
||||||
Open a shell ALT-x eshell
|
Open a shell M-x eshell
|
||||||
Goto a line number ALT-x goto-line
|
Goto a line number M-x goto-line
|
||||||
Word wrap ALT-x toggle-word-wrap
|
Word wrap M-x toggle-word-wrap
|
||||||
Spell checking ALT-x flyspell-mode
|
Spell checking M-x flyspell-mode
|
||||||
Line numbers ALT-x linum-mode
|
Line numbers M-x linum-mode
|
||||||
Toggle line wrap ALT-x visual-line-mode
|
Toggle line wrap M-x visual-line-mode
|
||||||
Compile some code ALT-x compile
|
Compile some code M-x compile
|
||||||
List packages ALT-x package-list-packages
|
List packages M-x package-list-packages
|
||||||
|
|
||||||
# Line numbers
|
# Line numbers
|
||||||
|
|
||||||
To add line numbers and enable moving to a line with CTRL-l:
|
To add line numbers and enable moving to a line with C-l:
|
||||||
|
|
||||||
(global-set-key "\C-l" 'goto-line)
|
(global-set-key "\C-l" 'goto-line)
|
||||||
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
|
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
|
||||||
|
Loading…
Reference in New Issue
Block a user