From: Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: launch a program in an arbitrary frame
Date: Sat, 18 Jul 2015 09:42:52 +0530 [thread overview]
Message-ID: <55A9D244.9010502@gmail.com> (raw)
In-Reply-To: <8xxwpxyducd.fsf@village.keycorner.org>
On Saturday 18 July 2015 08:51 AM, Hikaru Ichijyo wrote:
> A newbie question (getting more hooked on Emacs):
>
> I often run ERC to connect to IM services via a local Bitlbee daemon.
> It works best running in its own frame, so I know when people are
> talking to me without having to flip through all my buffers. (A window
> doesn't seem to be sufficient, since Gnus keeps changing the window
> layout to its Summary/Article split, and the only way I've found to deal
> with that is to keep programs whose layout I care about in separate
> frames.)
>
> Anyway, it's redundant to have to manually put ERC in its own frame
> every time I launch it.
>
> I have somethink like this bound to a key:
>
> (erc :server "localhost")
>
> Some programs have the ability to launch in a new frame built into them,
> but shouldn't you be able to do that with almost any program? If I
> wanted to run the above in an 80x24 frame at a particular X coordinate,
> how would I say that in Elisp?
>
I don't use erc or frames. But this is how I would go about exploring
more on the topic.
----------------------------------------------------------------
Did you try #emacs on irc.freenode.net? They are likely to have a
ready solution for you.
http://www.emacswiki.org/emacs?ErcBasics
----------------------------------------------------------------
M-x load-library erc
M-x apropos erc frame
I get
Type RET on a type label to view its full documentation.
erc-frame-alist
User option: Alist of frame parameters for creating erc frames.
Properties: standard-value custom-type custom-requests
variable-documentation
erc-frame-dedicated-flag
User option: Non-nil means the erc frames are dedicated to that
buffer.
Properties: standard-value custom-type custom-requests
variable-documentation
erc-reuse-frames
User option: Determines whether new frames are always created.
Properties: standard-value custom-type custom-requests
variable-documentation
supercite-frames
Properties: custom-loads
----------------------------------------------------------------
1. Create a new frame.
2. Open erc there.
Or use the following which more or less does the same thing.
(defun erc-other-frame (&optional server)
(interactive (list "irc.freenode.net"))
(switch-to-buffer-other-frame (erc :server server)))
M-x erc-other-frame
----------------------------------------------------------------
Once you have hand-adjusted the new frame, get it's configuration.
If you do
M-x pp-eval-expression RET (current-frame-configuration) RET
it tells you about your current frame. You may want to steal top,
left, width, height and name parameters.
----------------------------------------------------------------
Once you have obtained the configuration, plug those values in to erc
frame alist.
----------------------------------------------------------------
You can also experiment with what are called framesets. Try doing
what these nodes tell you
C-h k C-x r f
C-h K C-x r f
(Note the case of letter `k')
----------------------------------------------------------------
next prev parent reply other threads:[~2015-07-18 4:12 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-18 3:21 launch a program in an arbitrary frame Hikaru Ichijyo
2015-07-18 4:12 ` Vaidheeswaran C [this message]
2015-07-18 8:29 ` Emanuel Berg
2015-07-18 4:18 ` Vaidheeswaran C
2015-07-18 5:22 ` Drew Adams
2015-07-18 8:14 ` Emanuel Berg
[not found] ` <mailman.7087.1437207364.904.help-gnu-emacs@gnu.org>
2015-07-18 15:53 ` Hikaru Ichijyo
2015-07-18 16:35 ` Eli Zaretskii
2015-07-18 17:06 ` Óscar Fuentes
[not found] ` <mailman.7100.1437237353.904.help-gnu-emacs@gnu.org>
2015-07-18 17:12 ` Hikaru Ichijyo
2015-07-18 19:26 ` Emanuel Berg
[not found] ` <mailman.7109.1437247711.904.help-gnu-emacs@gnu.org>
2015-07-18 22:09 ` Hikaru Ichijyo
2015-07-18 22:45 ` Drew Adams
[not found] ` <mailman.7117.1437259681.904.help-gnu-emacs@gnu.org>
2015-07-18 23:28 ` Hikaru Ichijyo
2015-07-18 23:47 ` Emanuel Berg
[not found] ` <mailman.7122.1437263415.904.help-gnu-emacs@gnu.org>
2015-07-19 0:03 ` Hikaru Ichijyo
2015-07-19 0:32 ` Drew Adams
2015-07-19 7:15 ` Emanuel Berg
2015-07-19 13:03 ` Drew Adams
[not found] ` <mailman.7140.1437290215.904.help-gnu-emacs@gnu.org>
2015-07-19 10:40 ` Pascal J. Bourguignon
[not found] ` <mailman.7101.1437239201.904.help-gnu-emacs@gnu.org>
2015-07-18 17:47 ` Hikaru Ichijyo
2015-07-18 19:18 ` Emanuel Berg
[not found] ` <mailman.7108.1437247198.904.help-gnu-emacs@gnu.org>
2015-07-18 22:01 ` Hikaru Ichijyo
2015-07-18 22:56 ` Emanuel Berg
2015-07-18 23:39 ` Emanuel Berg
[not found] ` <mailman.7120.1437262864.904.help-gnu-emacs@gnu.org>
2015-07-18 23:51 ` Hikaru Ichijyo
2015-07-18 23:58 ` Emanuel Berg
[not found] ` <mailman.7124.1437264614.904.help-gnu-emacs@gnu.org>
2015-07-19 0:55 ` Hikaru Ichijyo
[not found] ` <mailman.7118.1437260312.904.help-gnu-emacs@gnu.org>
2015-07-18 23:32 ` Hikaru Ichijyo
2015-07-18 23:42 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A9D244.9010502@gmail.com \
--to=vaidheeswaran.chinnaraju@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).