This package allows to pipe content from the shell to emacs buffers. Noteworthy
naming-contenders were teapipe
, because maybe we will try to mimic more of coreutils tee
program. Or streamacs
for the streaming component.
- more commandlineflacs for
epipe
With running emacs server instance, chmod +x
the epipe
shell-script and run it using:
echo "test" | epipe
The emacs server instance will spawn a buffer containing "test"
For the streaming version, have a process printing to stdout, e.g. tail -f
. For some
file /tmp/myfile
, the usage is
tail -f /tmp/myfile | epipe -s
This results in:
- an emacs network process listening on a tmp unix socket
- the output of tail -f being continuously streamed to the socket using
socat
(base64
encoded). - emacs decoding and printing (async) to a tmp buffer
├── Cask ├── emacspipe ├── emacspipe.el ├── epipe ├── Makefile ├── my-live-update-package.zip ├── README.org ├── streamacs
- BATS
- To run the BATS integration tests, execute the `stream-to-emacs.bats` file within the `tests` directory.
- ERT
-
For the included emacs regression tests run them using either
make test
through the includedMakefile
or execute(ert-run-tests-batch)
from within emacs.