Skip to content

Commit 963d847

Browse files
committed
feat(install): add Emacs package installation guide
1 parent 18a478e commit 963d847

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

app/routes/install/index.tsx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
IconCode,
66
IconCpu,
77
IconDeviceDesktop,
8+
IconEmacs,
89
IconHomebrew,
910
IconInfoCircle,
1011
IconNix,
@@ -200,6 +201,60 @@ cargo build --release`}
200201

201202
<div class="install-divider" />
202203

204+
{/* Emacs Package */}
205+
<section class="install-section">
206+
<h2 class="install-section-title">
207+
<IconEmacs class="install-icon" />
208+
Emacs Package
209+
</h2>
210+
<p class="install-section-desc">
211+
Open Markdown files in Arto directly from Emacs with the official{" "}
212+
<a
213+
href="https://github.com/arto-app/arto.el"
214+
target="_blank"
215+
rel="noopener noreferrer"
216+
>
217+
arto.el
218+
</a>{" "}
219+
package.
220+
</p>
221+
222+
<h3 class="install-subsection-title">package-vc (Emacs 29+)</h3>
223+
<CodeBlock
224+
label="Emacs"
225+
code={`(package-vc-install "https://github.com/arto-app/arto.el")`}
226+
/>
227+
228+
<h3 class="install-subsection-title-spaced">
229+
use-package with vc (Emacs 30+)
230+
</h3>
231+
<CodeBlock
232+
label="init.el"
233+
code={`(use-package arto
234+
:vc (:url "https://github.com/arto-app/arto.el"))`}
235+
/>
236+
237+
<h3 class="install-subsection-title-spaced">Manual</h3>
238+
<CodeBlock
239+
label="init.el"
240+
code={`(add-to-list 'load-path "/path/to/arto.el")
241+
(require 'arto)`}
242+
/>
243+
244+
<div class="install-note-spaced">
245+
<p class="install-note-title">
246+
<IconInfoCircle size={16} stroke={2} />
247+
Requirements
248+
</p>
249+
<p class="install-note-text">
250+
Requires Emacs 27.1+ and Arto v0.15.0+ installed at{" "}
251+
<code>/Applications/Arto.app</code>.
252+
</p>
253+
</div>
254+
</section>
255+
256+
<div class="install-divider" />
257+
203258
{/* System Requirements */}
204259
<section class="install-section">
205260
<h2 class="install-section-title">

0 commit comments

Comments
 (0)