init file: add --no-userinit

and add --noinform that was missing in Clingon options.

Move the useful load-without-shebang in utils.lisp, now available for
all systems.

"make" alone calls make build
This commit is contained in:
vindarel 2023-05-04 16:53:40 +02:00
parent f7a4f06335
commit b23214917c
8 changed files with 98 additions and 33 deletions

View file

@ -539,3 +539,27 @@ This allows you to have a dumb "live reload" workflow with a simple editor and a
(simple-auto-reload)
(sleep most-positive-fixnum))
~~~
## Misc
### Load your scripts in the REPL
Calling your scripts from the shell is pretty cool, what if you could
*also* have them available at your fingertips in a Lisp REPL?
TLDR;
```lisp
;; in ~/.cielrc
(ciel::load-without-shebang "~/path/to/yourscript.lisp")
```
As the name suggests, this `load` function works even if your file starts with a shebang line (which is not valid Lisp code, so the default `LOAD` function would fail).
Y'know, sometimes you live longer in a Lisp REPL than in a shell
without noticing. Or simply, manipulating real objects in a text
buffer can be more practical than copy-pasting text in a rigid
terminal (even though Emacs'
[vterm](https://github.com/akermu/emacs-libvterm) is an excellent improvement too).
> INFO: the `~/.cielrc` file is loaded at start-up of the terminal REPL (called with `ciel`), not yet when you start the core image in your IDE.