From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs, Mac OS X and opening from Shell
Date: Fri, 25 Sep 2015 20:33:36 +0300 [thread overview]
Message-ID: <831tdmietr.fsf@gnu.org> (raw)
In-Reply-To: <CAAkRyrvhswdYrtLeHcZ4poiB4xB-rxMV8FVcyfF3T753Jp4tcg@mail.gmail.com>
> Date: Fri, 25 Sep 2015 15:47:35 +0100
> From: Alberto Simões <hashashin@gmail.com>
>
> So, in the come back, I am trying to make the emacs command to open an
> emacs window, if one is open, or opening a new buffer in the current window
> (and focus that buffer if possible).
>
> Currently, my emacs command line is a shell script that looks like this:
>
> /Applications/Emacs.app/Contents/MacOS/Emacs "$@" &
>
> This, of course, open a new window (although I usually close it, as the
> buffers are shared among windows).
>
> Any idea how I can make it behave as I described earlier?
Make it invoke emacsclient instead.
next prev parent reply other threads:[~2015-09-25 17:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-25 14:47 Emacs, Mac OS X and opening from Shell Alberto Simões
2015-09-25 17:33 ` Eli Zaretskii [this message]
2015-09-25 17:38 ` Alberto Simões
2015-09-25 18:31 ` Eli Zaretskii
2015-09-25 18:41 ` Alberto Simões
2015-09-28 11:32 ` Alan Schmitt
2015-09-25 18:42 ` Chunyang Xu
2015-09-25 18:44 ` Alberto Simões
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=831tdmietr.fsf@gnu.org \
--to=eliz@gnu.org \
--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.