From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kin Cho Newsgroups: gmane.emacs.help Subject: Re: Cool and Useful LISP for the .emacs file Date: 08 Nov 2003 19:20:56 -0800 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7iptg21b3b.fsf@neoscale.com> References: <7ik76b4k7s.fsf@neoscale.com> <87oevn9mim.fsf@141-moc-9.acn.waw.pl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068348627 24892 80.91.224.253 (9 Nov 2003 03:30:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2003 03:30:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 04:30:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AIgHQ-0008OD-00 for ; Sun, 09 Nov 2003 04:30:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AIhDl-0008AQ-1c for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Nov 2003 23:30:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!12.24.46.66!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 12.24.46.66 Original-X-Trace: news.uni-berlin.de 1068348062 48555135 12.24.46.66 (16 [151019]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:118028 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13967 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13967 Artur Hefczyc writes: > Kin Cho 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