-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacsCheatsheet.tex
106 lines (90 loc) · 2.57 KB
/
emacsCheatsheet.tex
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
\documentclass[11pt,landscape,a4paper]{article}
\def\eqlistlabel#1{\bfseries#1}
\usepackage[cm]{fullpage}
\usepackage{multicol}
\usepackage{eqlist}
\usepackage[pdftex]{hyperref}
\usepackage{nopageno}
\setcounter{secnumdepth}{-1}
\hypersetup{
pdfauthor={Mark Davidson},
pdftitle={Emacs Cheatsheet},
pdfstartview={FitH}
}
\begin{document}
\begin{multicols}{3}
\begin{center}
{
\huge \bfseries Emacs Cheatsheet
%\vspace{0.5 cm}
}\\
{
(\large for version 23.2+)
}
\end{center}
\section{Motion}
\begin{eqlist}
\item[C-f / C-b] Forward / Back one character
\item[C-p / C-n] Up / Down one character
\item[M-f / M-b] Forward / Back one word
\item[C-a / C-e] Beginning / End of line
\item[M-\textless] Start of document
\item[M-\textgreater] End of document
\item[M-v / C-v] Up / Down Page0
\item[C-l] Middle / Top / Bottom
\item[C-u 20 C-n] Advance 20 lines
\end{eqlist}
\section{Search and Replace}
\begin{eqlist}
\item[C-s \textit{patterntext}] Search forward for
\textit{patterntext}
\item[C-r \textit{patterntext}] Search backwards for
\textit{patterntext}
\end{eqlist}
\section{Quitting}
\begin{eqlist}
\item[C-x C-c] Quit
\item[C-g] Abort any command in progress
\end{eqlist}
\section{Regions}
\begin{eqlist}
\item[C-SPC] Set mark at cursor
\item[C-w] Kill region
\item[M-w] Copy region to kill ring
\item[C-y] Yank back last thing killed
\end{eqlist}
\section{Help}
\begin{eqlist}
\item[C-h a \textit{topic}] See help about \textit{topic}
\item[C-h c] Show command name on message line
\item[C-h f] Describe function
\item[C-h i] Info browser
\item[C-h k] Show command documentation
\item[C-h t] See the tutorial
\end{eqlist}
\section{Buffer, Frames \& Windows}
\begin{eqlist}
\item[C-x 0] Delete window
\item[C-x 1] Delete other
\item[C-x 2] Create new horizontal window
\item[C-x 3] Create new vertical window
\item[C-x 5 1] Delete other frames
\item[C-x 5 2] Make new frame
\item[C-x b] Select buffer
\item[C-x C-b] List buffers
\item[C-x C-f \textit{filename}] Create new \textit{filename} for
editing or load in \textit{filename} for editing
\item[C-x C-o] Cursor to next window
\item[C-x C-w \textit{filename}] Write as filename
\item[C-x C-s] Save
\end{eqlist}
\section{Magic Commands \textit{Rename this}}
\begin{eqlist}
\item[M-/] hippie-expand - Autocomplete kinda http://tulrich.com/geekstuff/emacs.html
\end{eqlist}
\end{multicols}
\let\thefootnote\relax\footnotetext{
Inspiration from Emacs Cheat Sheet (
https://ccrma.stanford.edu/guides/package/emacs/emacs.html ), Reference Card (http://refcards.com/docs/wingb/xemacs/xemacs-refcard-a4.pdf)
}
\end{document}