[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Start Emacs with a minimal bash and Emacs lisp mixed script for test
From: |
Hongyi Zhao |
Subject: |
Re: Start Emacs with a minimal bash and Emacs lisp mixed script for testing. |
Date: |
Wed, 4 Aug 2021 08:56:54 +0800 |
On Wed, Aug 4, 2021 at 8:34 AM Emanuel Berg via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> > Another question: how to do the same job with the `--script'
> > option of Emacs? I've tried with the following command, but
> > failed to start Emacs:
> >
> > :; emacs -Q --script $(realpath -e $0); exit
>
> #! /bin/zsh
>
> ; emacs -Q --script "$(realpath -e $0)"; exit
This can also be written as:
; exec emacs -Q --script "$(realpath -e $0)"
See <https://groups.google.com/g/comp.unix.shell/c/krxzfCd_8qM/m/W2Lc5W-jCAAJ>
for more detailed discussion.
> (message "what's up what's up wanna party or what say
Should be:
(message "what's up what's up wanna party or what say")
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province