mirror of
https://gitlab.com/vindarel/ciel.git
synced 2025-12-15 14:51:16 -08:00
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:
parent
f7a4f06335
commit
b23214917c
8 changed files with 98 additions and 33 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue