[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs server not detected in Mac OS High Sierra
From: |
Rusi |
Subject: |
Re: Emacs server not detected in Mac OS High Sierra |
Date: |
Thu, 28 Dec 2017 18:53:30 -0800 (PST) |
User-agent: |
G2/1.0 |
On Friday, December 29, 2017 at 4:48:49 AM UTC+5:30, Artemio González López
wrote:
> Hi all,
>
> 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
> instance of Emacs, even if a server process is already running (launched by a
> “(server-start)” 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=Edit text
MimeType=text/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=emacsclient -n -a "" %F
to these 3
Comment=Edit text
MimeType=text/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=emacsclient -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??