From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Olive Newsgroups: gmane.emacs.help Subject: Re: Is it possible to use emacsclient as the Gnome system editor? Date: Tue, 21 Nov 2006 19:07:19 +0100 Organization: VUB/ULB Computing Centre Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164134451 22992 80.91.229.2 (21 Nov 2006 18:40:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Nov 2006 18:40:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 21 19:40:49 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmaXn-0002yK-7P for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Nov 2006 19:40:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmaXm-0005x6-M8 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Nov 2006 13:40:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsgate.cistron.nl!xs4all!aotearoa.belnet.be!ikaria.belnet.be!news.belnet.be!snic.vub.ac.be!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: maxi.ulb.ac.be Original-X-Trace: snic.vub.ac.be 1164132413 12982 164.15.128.8 (21 Nov 2006 18:06:53 GMT) Original-X-Complaints-To: usenet@snic.vub.ac.be Original-NNTP-Posting-Date: 21 Nov 2006 18:06:53 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060914 SeaMonkey/1.0.5 In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:143246 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38863 Archived-At: Steinar Bang wrote: > Platform: Intel Pentium M, Ubuntu Dapper, > Gnome desktop (2.14.3-0ubuntu1) > emacs21 21.4a-3ubuntu2 > > I'm trying to use emacsclient, instead of gedit, as the default Gnome > text editor. > > Googling found me this howto: > http://ubuntuforums.org/showthread.php?t=299086 > > But this requires that there is a .desktop entry for the replacement > editor. On my system there is an emacs21.desktop. But using that > would fire up a new emacs for each file opened, and that's not what I > want. > > So what I wonder is: is it possible to create an emacsclient.desktop > entry? Or is desktop entry for emacsclient a meaningless concept? > > Basically: Is it possible to use emacsclient as the Gnome system > editor? > > Thanx! > > > - Steinar > > > To complete what others have said, I start emacs with a (very) small script; if a server is running it use it otherwise it launch a new emacs process: #! /bin/sh emacsclient -n "$@" &> /dev/null || exec emacs "$@" Olive