help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first emacs lisp script: hello world


From: Joel J. Adamson
Subject: Re: first emacs lisp script: hello world
Date: Fri, 07 Dec 2007 17:06:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Eric Hanchrow <address@hidden> writes:
> Depends what you mean by "script".  If you mean a standalone program
> that you can invoke from the operating-system shell, then ... even if
> it's theoretically possible to do that, I don't think you want to.

#!/usr/bin/emacs --script
(message "Hello Biscuit-lovers!")

An actual transcript from my shell:
address@hidden:~/lisp/el% chmod +x biscuit.el 

address@hidden:~/lisp/el% ./biscuit.el 

Hello Biscuit-lovers!

I rest my case.
Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109


reply via email to

[Prev in Thread] Current Thread [Next in Thread]