From: Javier <nospam@nospam.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Frame numbering
Date: Sun, 20 Apr 2014 08:18:00 +0000 (UTC) [thread overview]
Message-ID: <livvro$vks$1@speranza.aioe.org> (raw)
In-Reply-To: mailman.19880.1397918343.10748.help-gnu-emacs@gnu.org
I navigate frames like in screen, but don't access them by number.
I just press Shit+Left/Right arrow to move between them.
;; navigate frames with Shift + arrows
(defun other-frame-dec () "" (interactive) (other-frame '+1))
(defun other-frame-inc () "" (interactive) (other-frame '-1))
(global-set-key [S-left] 'other-frame-dec)
(global-set-key [S-right] 'other-frame-inc)
;;Some usefuld keybindings for dealing with frames:
(global-set-key [f4] 'delete-frame) ;originally bound to call-kbd-macro (also accessible with C-x e)
(global-set-key [C-f4] 'delete-frame)
; Kill frames instead of hiding them by pressing q (completition buffers, ...)
(setq frame-auto-hide-function 'delete-frame)
Joshua Studen <joshua.studen@gmail.com> wrote:
> Number 1 is what I do now, it's just a lot a bit of a slow-down to have to
> do it multiple times if I have multiple frames.
>
> #2 is very close. The ONLY issue is that I use emacs both via GUI locally
> and on a remote machine, I do emacs --daemon. When I leave the remote
> session, and come back and create a new Emacs client, the frame numbers do
> NOT start back at F1,
>
> I need a combination of your #2 and the suggested M-x set-frame-name. Maybe
> next emacs, there will be a way to set a frame name :).
>
> Thanks, all.
>
>
> On Fri, Apr 18, 2014 at 9:07 PM, Drew Adams <drew.adams@oracle.com> wrote:
>
>> > Is there an easy way to have numbered frames in Emacs? I guess, I'd like
>> to
>> > setup my environment similar to what screen/tmux offer. I've found
>> > elscreen, but after using it for a while, I find it more of a distraction
>> > rather than an aid.
>> >
>> > Like with Tmux or screen, I can do C-b (or C-a) and then a number and it
>> > will switch to that screen/tmux pane. I think it COULD be possible with
>> > Emacs, but I don't know how to do it.
>> >
>> > Any advice or suggestions?
>>
>> This might be some help, though it does not seem to be exactly what you
>> are requesting.
>>
>> 1. `C-x 5 o' cycles among the available frames. This is true even if you
>> use Emacs in a terminal (i.e., without a graphic display) - see the Emacs
>> manual, node `Non-Window Terminals'.
>>
>> 2. Command `select-frame-by-name' raises and selects a frame by name,
>> providing completion. Again, this works also without a graphic display.
>> Frame names in a terminal are simple by default: FN1, FN2, etc.
>> Bind the command to a key, e.g., `C-a' as you suggested. Then
>> `C-a TAB 3' takes you to frame FN3.
>>
next prev parent reply other threads:[~2014-04-20 8:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 21:34 Frame numbering Joshua Studen
2014-04-19 1:07 ` Drew Adams
2014-04-19 14:39 ` Joshua Studen
2014-04-19 19:42 ` Drew Adams
[not found] ` <mailman.19880.1397918343.10748.help-gnu-emacs@gnu.org>
2014-04-20 8:18 ` Javier [this message]
2014-04-19 6:32 ` Eli Zaretskii
2014-04-19 8:17 ` Alan Schmitt
2014-04-19 8:42 ` Eli Zaretskii
2014-04-19 11:00 ` Alan Schmitt
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='livvro$vks$1@speranza.aioe.org' \
--to=nospam@nospam.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.
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.