From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Reuse frame with emacsclient and/or use shell aliases when finding files Date: Sat, 31 May 2014 00:13:23 +0200 Message-ID: <87lhtioqyk.fsf@gmail.com> References: <06de416b-9d9d-4e86-bc41-f6b9a06404f4@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401488058 28010 80.91.229.3 (30 May 2014 22:14:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2014 22:14:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 31 00:14:08 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 1WqV3v-0000U2-To for geh-help-gnu-emacs@m.gmane.org; Sat, 31 May 2014 00:14:08 +0200 Original-Received: from localhost ([::1]:56817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqV3v-0000Yd-G6 for geh-help-gnu-emacs@m.gmane.org; Fri, 30 May 2014 18:14:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqV3d-0000YA-3N for help-gnu-emacs@gnu.org; Fri, 30 May 2014 18:13:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqV3S-0006ku-F9 for help-gnu-emacs@gnu.org; Fri, 30 May 2014 18:13:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqV3S-0006jv-8I for help-gnu-emacs@gnu.org; Fri, 30 May 2014 18:13:38 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WqV3Q-0008NL-J8 for help-gnu-emacs@gnu.org; Sat, 31 May 2014 00:13:36 +0200 Original-Received: from g231224241.adsl.alicedsl.de ([92.231.224.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 May 2014 00:13:36 +0200 Original-Received: from tjolitz by g231224241.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 May 2014 00:13:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231224241.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:LY5iOYVCE6sOhIN5A2jOCjtyTDE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:97971 Archived-At: Jacob Gerlach writes: Hi, > I'm trying to better integrate my workflow in emacs. I've read a lot > about using emacs server, and experimented a little bit with setting > it up. If I open files with emacsclient, I end up with multiple > separate frames (I think I mean frame and not window. I've never been > positive I correctly understand the terminology). Although the frames > are connected through the server, I miss some of the navigation > functionality I get when I have multiple windows in a frame > (other-window, kill-buffer-and-window, etc). when using a terminal multiplexer like tmux or gnu-screen or a tiling window-manager like stumpwm or awesome or so, and configuring them with emacs key-bindings, frame navigation is pretty similar to window navigation in Emacs, only with a special preserved prefix like e.g. C-o. The nice thing is that you can have an external browser, a shell and an emacsclient side by side almost as if they were 3 Emacs buffers. > What I think that I want to do is figure out how to reuse an existing > GUI frame if it exists. In other words, if I run `emacsclient -c > foofile' from my shell and I already have a frame open, I would like > foofile to open in that frame (and have the option to split the frame > if possible). If no frame is open (i.e. just the server), I would > like the normal behavior of opening a new frame. Thats something I tried to figure out to - how to address a specific already open emacsclient instance, i.e. start it, figure out its process id or so, and later on communicate with it (programmatically, not interactively) > I realize that another (perhaps better option) is to use emacs as my > shell. I'm experimenting with this but I am not sold yet. > > Another problem, and the reason I'm opening multiple files from the > shell in the first place (instead of from within emacs), is that I > mostly navigate around between different projects using shell aliases. > Is there any way to use those aliases so that when I find-file I don't > have to manually navigate to the desired directory? > > Any other recommendations that come to mind to migrate work from the > shell to emacs are welcome. dired + ido? recent-files? -- cheers, Thorsten