From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jacob Gerlach Newsgroups: gmane.emacs.help Subject: Reuse frame with emacsclient and/or use shell aliases when finding files Date: Fri, 30 May 2014 14:56:33 -0700 (PDT) Message-ID: <06de416b-9d9d-4e86-bc41-f6b9a06404f4@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1401487244 19116 80.91.229.3 (30 May 2014 22:00:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2014 22:00:44 +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:00:37 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 1WqUqn-0003mg-Tb for geh-help-gnu-emacs@m.gmane.org; Sat, 31 May 2014 00:00:34 +0200 Original-Received: from localhost ([::1]:56753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqUqn-0001f8-Jc for geh-help-gnu-emacs@m.gmane.org; Fri, 30 May 2014 18:00:33 -0400 X-Received: by 10.51.17.10 with SMTP id ga10mr210417igd.4.1401486994157; Fri, 30 May 2014 14:56:34 -0700 (PDT) X-Received: by 10.140.108.194 with SMTP id j60mr4939qgf.40.1401486993961; Fri, 30 May 2014 14:56:33 -0700 (PDT) Original-Path: usenet.stanford.edu!hl10no8011123igb.0!news-out.google.com!qf4ni17772igc.0!nntp.google.com!c1no21148960igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.217.114.175; posting-account=Hx-_8AoAAACyMXgs4MCS3wNERNLct_lk Original-NNTP-Posting-Host: 98.217.114.175 User-Agent: G2/1.0 Injection-Date: Fri, 30 May 2014 21:56:34 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205700 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:97970 Archived-At: 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). 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. 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.