blob: a656032246a45f4e7d062842210775d941288c2a (
plain) (
blame)
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
|
ES
====
ES is EMACS but without MACros. This is a shitty little editor, should build with who-knows-which
zig master version.
This doesn't implement windowing as I don't think I can beat tmux for that. It is expected that
`C-c` will be used for the tmux prefix key so it is not being assigned to anything in ES.
I have attached a tmux config in `dot-tmux.conf`, symlink `~/.config/tmux/tmux.conf` to it or base
your own config on it, whatever floats your boat.
Currently you have to guess the keybindings from `src/KeyMap.zig` + tmux, maybe at some point I will
create a built in help screen.
Building
----------
Building this is very simple
```sh
$ zig build -Doptimize=ReleaseSafe
```
To run it without installing:
```sh
$ zig build -Doptimize=ReleaseSafe run
```
To install it (feel free to replace `~/.local` with any other prefix you want to use).
```sh
$ zig build -Doptimize=ReleaseSafe -p ~/.local
```
Configuration
---------------
There is a very bare-bones configuration available. An example with default values is installed to
`$PREFIX/share/arkta/es/es.ini`, copy it to `~/.config/arkta/es/es.ini` (actually any
`$XDG_CONFIG_HOME`, `$XDG_CONFIG_DIRS`, &c are supported).
<table>
<caption>Configuration cheatsheet</caption>
<thead>
<tr>
<th scope="col">Config Key</th>
<th scope="col">Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<td scope="row"><code>hard-tabs</code></td>
<td>
Whether to insert a literal TAB character when pressing the TAB key or just the equivalent
amount of spaces (see <code>tab-stop</code>).
</td>
</tr>
<tr>
<td scope="row"><code>line-limit</code></td>
<td>Line length past which all characters get a red background.</td>
</tr>
<tr>
<td scope="row"><code>page-overlap</code></td>
<td>Amount of lines shared when scrolling up or down with PageDown (C-v) or PageUp (M-v).</td>
</tr>
<tr>
<td scope="row"><code>tab-stop</code></td>
<td>How many spaces a single tab equates to.</td>
</tr>
</tbody>
</table>
|