unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Olive <olive@noemail.org>
Subject: Re: Is it possible to use emacsclient as the Gnome system editor?
Date: Tue, 21 Nov 2006 19:07:19 +0100	[thread overview]
Message-ID: <ejvf7t$clm$1@snic.vub.ac.be> (raw)
In-Reply-To: <mailman.934.1164115395.2155.help-gnu-emacs@gnu.org>

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

  parent reply	other threads:[~2006-11-21 18:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.934.1164115395.2155.help-gnu-emacs@gnu.org>
2006-11-21 13:42 ` Is it possible to use emacsclient as the Gnome system editor? Charles philip Chan
2006-11-22  7:40   ` Steinar Bang
2006-11-21 18:07 ` Olive [this message]
2006-11-21 19:11   ` Juanma Barranquero
2006-11-21 13:22 Steinar Bang
2006-11-21 13:59 ` Lennart Borgman
2006-11-21 14:07 ` Leo
     [not found] ` <mailman.938.1164117578.2155.help-gnu-emacs@gnu.org>
2006-11-21 14:25   ` David Kastrup
2006-11-21 15:34     ` Lennart Borgman
2006-11-22  7:53       ` Steinar Bang
     [not found]       ` <mailman.977.1164182027.2155.help-gnu-emacs@gnu.org>
2006-11-22 10:08         ` David Kastrup

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ejvf7t$clm$1@snic.vub.ac.be' \
    --to=olive@noemail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).