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

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

Re: Cool and Useful LISP for the .emacs file


From: Kin Cho
Subject: Re: Cool and Useful LISP for the .emacs file
Date: 08 Nov 2003 19:20:56 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Artur Hefczyc <address@hidden> writes:

> Kin Cho <address@hidden> writes:
> > I used to carry around a collection of shell, sed, awk, and perl
> > scripts to do various text/file/directory processing, as well as
> > doing cvs/rcs stuff, running compilation and gdb etc...  Now I do
> > (almost) all these things in elisp.
> 
> I like this idea! I would like to use elisp as scripting language
> also. However I would like to know if it is possible to use it that
> way. I mean, lets assume I create elisp script to update my Linux box
> system with new releases of some packages.
> 
> Is it possible to run it from command line like all other scripts,
> bash, perl etc.?
> 
> I mean file script starting from:
> #!/usr/bin/emacs
> 
> Or any other elisp interpreter?

Well, the preferred way is to make a interactive defun and run it
with M-x.  That way, you can write it, debug it, and enhance it
-- all in the comfort of the emacs environment.

-kin


reply via email to

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