How can I pass arguments -q -d -Q -t -L -fg -bg –color etc?
Doing something like emacs --script -Q <scriptname> <arguments> definetely will not pass arguments, which are used in emacs. So how to do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based on your comment on Rafael Ibraim’s answer, I’m adding this second answer, as I think my first answer is also mis-interpreting your question (and if so, you may wish to edit the question to provide clarification).
You can prevent Emacs from processing command line arguments using the usual approach of an ’empty’ argument:
--So if you run this:
emacs --script (filename) -- -QEmacs will not eat the
-Qargument (or the--in fact), and it will be available to your script. You can easily verify this with the following script: