-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs.html
194 lines (178 loc) · 8.64 KB
/
emacs.html
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>Hillary Sanders</title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<nav class="blue-grey" role="navigation">
<div class="nav-wrapper container">
<!-- Dropdown Structure -->
<ul id="dd_art" class="dropdown-content blue-grey">
<li><a href="graphite.html" class="white-text">graphite</a></li>
<li><a href="ink.html" class="white-text">ink</a></li>
<li><a href="paint.html" class="white-text">paint</a></li>
<li><a href="mixed.html" class="white-text">mixed</a></li>
</ul>
<ul id="dd_cheatsheets" class="dropdown-content blue-grey">
<li><a href="python.html" class="white-text">Python</a></li>
<!-- <li><a href="r.html" class="white-text">R</a></li> -->
<li><a href="unix.html" class="white-text">UNIX</a></li>
<li><a href="latex.html" class="white-text">LaTeX</a></li>
<!-- <li><a href="probability.html" class="white-text">Probability</a></li> -->
</ul>
<nav>
<div class="nav-wrapper">
<a href="index.html" class="brand-logo hillz"> hillz</a>
<ul class="right hide-on-med-and-down">
<li><a href="resume.html">Resume</a></li>
<li><a href="recent_projects.html">Recent Projects</a></li>
<!-- <li><a href="bayesian_statistics.html">Bayesian Statistics</a></li> -->
<li><a href="about_me.html">About Me</a></li>
<!-- Dropdown Trigger -->
<!-- <li><a class="dropdown-button" href="#" data-hover="true" data-beloworigin="true" data-activates="dd_cheatsheets">
Cheatsheets
<i class="material-icons right">arrow_drop_down</i></a></li> -->
<li><a class="dropdown-button" href="#" data-hover="true" data-beloworigin="true" data-activates="dd_art">
Art
<i class="material-icons right">arrow_drop_down</i></a></li>
</ul>
</div>
</nav>
<ul id="nav-mobile" class="side-nav blue-grey white-text">
<li><a href="index.html" class="white-text">HOME</a></li>
<li><a href="resume.html" class="white-text">Resume</a></li>
<li><a href="recent_projects.html" class="white-text">Recent Projects</a></li>
<!-- <li><a href="bayesian_statistics.html" class="white-text">Bayesian Statistics</a></li> -->
<li><a href="about_me.html" class="white-text">About Me</a></li>
<li><a class="white-text">Art</a></li>
<li><a href="graphite.html" class="white-text"> draw</a></li>
<li><a href="ink.html" class="white-text"> pen</a></li>
<li><a href="paint.html" class="white-text"> paint</a></li>
<li><a href="mixed.html" class="white-text"> mixed</a></li>
<li><a class="white-text">Cheatsheets</a></li>
<li><a href="python.html" class="white-text"> Python</a></li>
<li><a href="r.html" class="white-text"> R</a></li>
<li><a href="unix.html" class="white-text"> UNIX</a></li>
<li><a href="latex.html" class="white-text"> LaTeX</a></li>
<li><a href="probability.html" class="white-text"> Probability</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
<div class="row center">
<h2 class="header col s12 white-text">UNIX</h2>
</div>
<div class="row">
<div class="col s12 m4 l3">
<div class="cheatbox">
<h5> Running Stuff </h5>
C-c! <b> open interpreter </b> (e.g. if you're in a python script, a python
interpreter will appear.) </br>
C-c C-c <b> run whole file </b> </br>
C-c| <b> run selected lines </b> </br>
C-space <b> select lines </b> </br>
</div>
<div class="cheatbox">
<h5> Buffers </h5>
C-x C-f <b> open file (with a buffer)</b> </br>
C-x C-s <b> save file </b> </br>
C-x C-i insert file at cursor position </br>
C-x b <b> create/switch buffers </b> </br>
C-x C-b <b> show buffer list </b> </br>
C-x k <b> kill buffer </b> </br>
C-X C-x close down emacs </br>
</div>
</div>
<div class="col s12 m4 l3">
<div class="cheatbox">
<h5> Movement </h5>
M-f <b> forward one word </b> </br>
M-b <b> backward one word </b> </br>
C-a <b> beginning of line </b> </br>
C-e <b> end of line </b></br>
C-v <b> one page up </b></br>
M-v <b> scroll one page down </b></br>
M-< beginning of text </br>
M-> end of text </br>
C-f forward character </br>
C-b backward one character </br>
C-p <b> last line </b> </br>
C-n <b> next line </b> </br>
</div>
<div class="cheatbox">
<h5> Editing </h5>
M-n repeat next command n times </br>
C-d <b> delete a character </b> </br>
M-d <b> delete a word </b> </br>
M-Del delete word backwards </br>
C-k <b> kill line </b> </br>
</br>
C-Space <b> begin selection </b> </br>
C-W <b> delete marked region </b> </br>
M-W <b> copy marked region </b> </br>
C-y <b> paste the most recently deleted or copied line/region </b> </br>
</div>
</div>
<div class="col s12 m4 l3">
<div class="cheatbox">
<h5> Windows </h5>
C-x <b> 2 split window horizontally </b> </br>
C-x o <b> change to next window </b> </br>
C-x 0 <b> delete window </b> </br>
C-x 1 close all windows except the one the cursor is in </br>
C-x ^ enlarge window </br>
C-x shrink-window </br>
C-x 4 0 kill buffer and window </br>
C-x 5 2 make new frame </br>
C-x 5 o change to other frame </br>
C-x 5 0 kill frame </br>
</div>
<div class="cheatbox">
<h5> Oops </h5>
C-x u <b> undo </b> </br>
C-g Quit the running command </br>
M-x revert-buffer RETURN undo all changes since last save </br>
</div>
</div>
<div class="col s12 m4 l3">
<div class="cheatbox">
<h5> Search & Replace </h5>
C-s <b> search forwards </b> </br>
C-r search backwards </br>
C-g return to where your search started (works if you are still in search mode) </br>
M-% <b> query replace </b> </br>
Space, y = replace this occurrence </br>
Del, n = don't replace </br>
. only replace this, then exit </br>
, replace and pause </br>
! replace all </br>
^ back to previous match </br>
RETURN or q to quit replace </br>
<b> Search/Replace with RegEx:</b> </br>
^ beginning of line </br>
$ end of line </br>
\< beginning of a word </br>
\> end of a word </br>
</div>
<div class="cheatbox">
<h5> Help </h5>
C-h c what command does this keystroke invoke </br>
C-h k what command does this keystroke invoke and what does it do </br>
C-h f what does this function do </br>
C-h v what's this variable and what is its values </br>
</p>
</div>
</div>
</div>
<!-- Scripts-->
<script src="js/jquery-2.2.3.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
</body>
</html>