From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Emacs server not detected in Mac OS High Sierra Date: Thu, 28 Dec 2017 18:53:30 -0800 (PST) Message-ID: <00d5b9fa-834d-479e-9e05-9239b09f9ef6@googlegroups.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1514516016 10698 195.159.176.226 (29 Dec 2017 02:53:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 02:53:36 +0000 (UTC) Injection-Date: Fri, 29 Dec 2017 02:53:31 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 29 03:53:32 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUknZ-00024U-1x for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Dec 2017 03:53:29 +0100 Original-Received: from localhost ([::1]:50376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUkpU-0003Kc-P8 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Dec 2017 21:55:28 -0500 X-Received: by 10.55.159.6 with SMTP id i6mr20420506qke.12.1514516011313; Thu, 28 Dec 2017 18:53:31 -0800 (PST) X-Received: by 10.31.170.1 with SMTP id t1mr3075112vke.4.1514516011005; Thu, 28 Dec 2017 18:53:31 -0800 (PST) Original-Path: usenet.stanford.edu!m31no3331367qtf.0!news-out.google.com!t48ni1140qtc.1!nntp.google.com!m31no3331365qtf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=117.223.154.184; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 117.223.154.184 Original-Xref: usenet.stanford.edu gnu.emacs.help:221380 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:115495 Archived-At: On Friday, December 29, 2017 at 4:48:49 AM UTC+5:30, Artemio Gonz=C3=A1lez = L=C3=B3pez wrote: > Hi all, >=20 > When a .tex file is opened in Emacs 25.3.1 under the newly released macOS= 10.13 High Sierra by double-clicking on it it always launches a second ins= tance of Emacs, even if a server process is already running (launched by a = =E2=80=9C(server-start)=E2=80=9D line at the beginning of my .emacs file). = Is there any way to fix this? For gnome/unity/etc I wrote something for my students https://bitbucket.org/rustom/vit-projects/wiki/emacsasdefault But whats the equivalent of a ".desktop file" under macOS, I have no idea Note 1. Some typos need to be corrected Change these two lines Comment=3DEdit text MimeType=3Dtext/english;text/plain;text/x-makefile;text= /x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text= /x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c= ++; Exec=3Demacsclient -n -a "" %F to these 3 Comment=3DEdit text MimeType=3Dtext/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++= src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl= ;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; Exec=3Demacsclient -n -a "" -c %F [Seems to be some org-mode to md export bug] Note 2 Modern emacsen seem to come with a systemd service file for this Maybe also made working for MacOS??