summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Szukalski <szymon@szymonszukalski.com>2026-04-08 10:38:37 +1000
committerSzymon Szukalski <szymon@szymonszukalski.com>2026-04-08 10:38:37 +1000
commitb041a96c7bbd2929586702dbc464eb079f89e56e (patch)
treec1d0deec6864899b517af2e83383fdd661749fe6
parent1349f1ffe914c6a8bb34c11892890d1656ee81a6 (diff)
chore: add reset and build helpers
-rw-r--r--.gitignore2
-rw-r--r--README.md13
-rwxr-xr-xbuild6
-rwxr-xr-xreset6
4 files changed, 27 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 5c5fca3..a0dc500 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,8 @@
!/README.md
!/config.org
!/abbrev_defs
+!/reset
+!/build
!/name-dictionary.el
!/docs/
!/docs/plans/
diff --git a/README.md b/README.md
index 3578547..3f0cce0 100644
--- a/README.md
+++ b/README.md
@@ -125,12 +125,25 @@ To regenerate the generated files from the repo root:
emacs --batch -Q --eval '(progn (require (quote ob-tangle)) (org-babel-tangle-file "config.org"))'
```
+Or use the helper script:
+
+```sh
+./build
+```
+
To verify that the generated main config still loads:
```sh
emacs --batch -Q --load ./init.el
```
+To remove generated startup files and common working directories from the repo
+root:
+
+```sh
+./reset
+```
+
## Workflow
### MOC
diff --git a/build b/build
new file mode 100755
index 0000000..f2b95a7
--- /dev/null
+++ b/build
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -eu
+
+exec emacs --batch -Q \
+ --eval '(progn (require (quote ob-tangle)) (org-babel-tangle-file "config.org"))'
diff --git a/reset b/reset
new file mode 100755
index 0000000..ce49b2f
--- /dev/null
+++ b/reset
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -eu
+
+rm -f init.el early-init.el
+rm -rf auto-save-list eln-cache elpa