From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Simple question on loading programs in emacs
Date: Fri, 30 Nov 2012 19:55:22 -0500 [thread overview]
Message-ID: <barmar-B4C635.19552230112012@news.eternal-september.org> (raw)
In-Reply-To: 87lidjgf3v.fsf@engels.HistoricalMaterialism.info
In article <87lidjgf3v.fsf@engels.HistoricalMaterialism.info>,
Haines Brown <haines@histomat.net> wrote:
> A simple question, but I'm lost in the manual. I want to start a session
> of emacs that automatically loads an emacs program automatically instead
> of having to do M-x program during the emacs session. I want to do this
> because I have a custom emacs init file just for that emacs program.
>
> I tried (autoload 'program "ProgramName" t), but this only sets it in
> the environment.
>
> A related question: When I close that program within emacs, I want
> it to close the emacs session as well.
Maybe Emacs Batch Mode is what you're looking for. See
http://www.emacswiki.org/BatchMode
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
next prev parent reply other threads:[~2012-12-01 0:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 17:44 Simple question on loading programs in emacs Haines Brown
2012-11-30 17:53 ` Bastien
2012-11-30 18:54 ` Pascal J. Bourguignon
2012-11-30 19:34 ` Jambunathan K
2012-12-01 0:55 ` Barry Margolin [this message]
2012-12-01 9:44 ` Pascal J. Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=barmar-B4C635.19552230112012@news.eternal-september.org \
--to=barmar@alum.mit.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.