-
Notifications
You must be signed in to change notification settings - Fork 0
/
first-steps.Rmd
172 lines (100 loc) · 3.19 KB
/
first-steps.Rmd
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
---
author: Dirk Eddelbuettel
title: First Steps with Emacs
subtitle: "Part of the ESS-Intro series"
institute: "`r format(Sys.Date(), 'This version is dated %d %b %Y')`"
output:
binb::metropolis:
incremental: false
fontsize: 12pt
classoption: compress,aspectratio=169,handout
classoptionFull: compress,aspectratio=169
header-includes:
- |
```{=latex}
\metroset{titleformat=smallcaps,numbering=fraction,background=light}
\setbeamercolor{frametitle}{bg=orange}
\hypersetup{colorlinks,citecolor=orange,filecolor=orange,linkcolor=orange,urlcolor=orange}
\titlegraphic{\includegraphics[width=2cm]{images/logoESS.png}}
```
---
## Emacs: Getting Started
::::: {.columns}
::: {.column width="60%"}
\bigskip
### The Perception of Emacs
. . .
\bigskip
![](images/emacs_organ.jpeg)
:::
::: {.column width="40%"}
\small
. . .
### Intimidated?
. . .
- Decades of history.
- Bazillion tutorials.
- _Opinionated_ views.
\smallskip
. . .
### But fear not!
. . .
- _Incremental use_ works.
- Learn a few steps. Master them.
- Learn some more.
:::
::::::
## Emacs: Basics Movement
::::: {.columns}
::: {.column width="50%"}
![](images/emacs_tutorial.png)
:::
::: {.column width="50%"}
### A really good \alert{builtin} resource
\medskip
. . .
- The Emacs Tutorial
- just hit `C-h t`
- ie type `Ctrl` _and `h`_, then type `t`.
- Covers a lot of the basis
- Worth spending some time with
- And revisiting
\medskip
:::
::::::
## Emacs: Editing
### Key Advantages
. . .
- Particular uses _carry from one mode to another_ for (essentially)
all forms of text
- There are too many to enumerate but ...
- ... (maybe my) favourite example
- `C-space` to mark a starting
- Navigate to end
- `M-x comment-region` will uncomment the regions
- In \alert{any programming language} or \alert{text format}
- Also cool: Prefix the same with `C-u` ("undo") to uncomment
## Emacs: Editing
### More Key Advantages (via Somewhat Random Personal Selection)
. . .
- Indentation is always sensitive to the programming language
- `M-q` formats ("flows") indents a paragraph
- `C-M-\` indents a region in the current language
- Very powerful 'undo' feature
- Rectangular regions (could be a five-mi presentation in itself)
- 'Record' key sequence to 'replay' for ad-hoc automation (ditto)
- Named Register to hold paste-able content or positions (ditto)
## Resources
### This is a semi-random collection
\footnotesize
- Awesome Emacs https://github.com/emacs-tw/awesome-emacs
- Collection of resources (2011) https://batsov.com/articles/2011/11/30/the-ultimate-collection-of-emacs-resources/
- Opinionated Emacs Guide https://m00natic.github.io/emacs/emacs-wiki.html
- Batteries Included https://karthinks.com/software/batteries-included-with-emacs/
- More Batteries Included https://karthinks.com/software/more-batteries-included-with-emacs/
- EmacsLife Video List https://emacslife.com/videos.html
## Credits
\footnotesize
### Images and Logos
- ESS logo from the ESS Project site hosted by the R Project at https://ess.r-project.org
- Emacs Organ image from http://anagilemind.net/2015/07/31/a-few-more-agile-related-memes/ah-finally-got-my-emacs-setup-just-how-i-like-it-v2/