help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to use emacsclient as the Gnome system editor?


From: Olive
Subject: Re: Is it possible to use emacsclient as the Gnome system editor?
Date: Tue, 21 Nov 2006 19:07:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060914 SeaMonkey/1.0.5

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]