[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: --script and --quick
From: |
saint |
Subject: |
Re: --script and --quick |
Date: |
Wed, 27 May 2015 14:02:17 +0200 |
Michael Heerdegen writes:
> "Gian Uberto Lauri" <saint@eng.it> writes:
>
> > ---------------------------------8<----------------------
> > #!/bin/bash
> >
> > emacs --quick --script $@
> > ---------------------------------8<----------------------
>
> And put the code into a different file?
*This* is the interpreter (a wrapper for Emacs). Use it for all your
scripts.
-------------------------8<--------------------------
#!/home/saint/bin/esh
(find-file "paperoga")
(insert (concat "hello" "world"))
(save-buffer)
-------------------------8<--------------------------
This is a script .
BTW, I often use emacsclient --eval to invoke functions in a running
and is faster, but could block the foreground Emacs for a while.
My favourite strategy is a little shell script that targets the files
and processes them within Emacs.
--
/\ ___ Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____ African word
//--\| | \| | Integralista GNUslamico meaning "I can
\/ coltivatore diretto di software not install
già sistemista a tempo (altrui) perso... Debian"
Warning: gnome-config-daemon considered more dangerous than GOTO
- --script and --quick, Michael Heerdegen, 2015/05/26
- Re: --script and --quick, Óscar Fuentes, 2015/05/26
- Re: --script and --quick, Michael Heerdegen, 2015/05/26
- Re: --script and --quick, Bob Proulx, 2015/05/26
- Re: --script and --quick, Yuri Khan, 2015/05/26
- Re: --script and --quick, Gian Uberto Lauri, 2015/05/27
- Re: --script and --quick, Michael Heerdegen, 2015/05/27
- Re: --script and --quick,
saint <=
- Re: --script and --quick, Michael Heerdegen, 2015/05/27
- Re: --script and --quick, Gian Uberto Lauri, 2015/05/27
- Re: --script and --quick, Michael Heerdegen, 2015/05/27
- Re: --script and --quick, Michael Heerdegen, 2015/05/28
- Message not available
- Re: --script and --quick, Chris F.A. Johnson, 2015/05/27
- Re: --script and --quick, Gian Uberto Lauri, 2015/05/27
- Re: --script and --quick, Michael Heerdegen, 2015/05/28