#!/usr/bin/clisp
(write-line "Hello World")
If I put this in a script it prints Hello World
as expected.
What I'm wondering is there a way to use emacs-nox
instead of clisp
in the shebang and have it work the same way.
You can use the --script
flag to run an elisp file as a script:
#!/usr/bin/emacs --script
<-- Insert your elisp program here -->
See the manual page on Initial Options for more details.
emacs-nox
? What does this have to do with using Elisp files - where's the Elisp file in what you wrote?emacs-nox
is Emacs without the graphical interface. It only runs in a terminal. I thought that was standard, but maybe the nameemacs-nox
is specific to Debian/Ubuntu.