From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: Frame numbering Date: Sun, 20 Apr 2014 08:18:00 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <3b67fd8d-7cd3-469b-9975-154fb3b5dfbe@default> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1397982027 30563 80.91.229.3 (20 Apr 2014 08:20:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2014 08:20:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 20 10:20:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wbmz5-0002n9-O9 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2014 10:20:19 +0200 Original-Received: from localhost ([::1]:44775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wbmz5-00085l-8Z for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2014 04:20:19 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: F0FEFcLSZEaVVHfj1cocJw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (Linux/3.13.6-1-ARCH (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:204987 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97252 Archived-At: 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 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 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. >>