From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: emacsclient not integrated into modern window systems
Date: Fri, 10 Jul 2015 20:24:19 -0700 (PDT) [thread overview]
Message-ID: <61e558ef-6edb-4fd5-af12-7fa0d470c9c4@googlegroups.com> (raw)
Student of mine asked me if its possible to have emacs open from the file browser. [By default it opens with gedit]
For 1/2 hour we tried to find properties/open-with etc to make it emacsclient
but to no avail
After a lot of struggle the best I came up with was the below steps.
So... If installing emacs (using say apt) makes emacs an established app to open
(some) mimetypes, why is emacsclient not setup similarly?
[I realize that this question may be more suitable for ubuntu/gnome/ etc folks...
Still thought I'd ask]
-------------------------
0. Put (server-start) into init.el
Check that now 'emacsclient somefile' from a shell starts the same emacs
1. Put the following (between the --------- and ------------- )
into the file ~/.local/share/applications/emacs.desktop
---------
[Desktop Entry]
Name=EmacsClient
GenericName=Text Editor
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 emacs %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
StartupWMClass=Emacs
---------
2. Now in file browser, click on a file you want opened in emacs and
click properties -> open-with
Here you should find 'EmacsClient' somewhere down.
You can make it default
Note: Between 1 and 2 you may need to reboot (actually logout of X-windows is enough)
next reply other threads:[~2015-07-11 3:24 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-11 3:24 Rusi [this message]
2015-07-11 10:54 ` emacsclient not integrated into modern window systems Rasmus
[not found] ` <mailman.6717.1436612090.904.help-gnu-emacs@gnu.org>
2015-07-11 11:12 ` Rusi
2015-07-11 16:34 ` Raffaele Ricciardi
2015-07-11 12:20 ` Vaidheeswaran C
[not found] ` <mailman.6720.1436617209.904.help-gnu-emacs@gnu.org>
2015-07-11 12:24 ` Rusi
2015-07-11 18:59 ` Vaidheeswaran C
2015-07-11 19:08 ` Vaidheeswaran C
2015-07-12 8:54 ` Vaidheeswaran C
[not found] ` <mailman.6736.1436641200.904.help-gnu-emacs@gnu.org>
2015-07-12 2:57 ` Rusi
2015-07-12 4:28 ` Vaidheeswaran C
[not found] ` <mailman.6761.1436675333.904.help-gnu-emacs@gnu.org>
2015-07-12 5:06 ` Rusi
2015-07-12 6:02 ` Vaidheeswaran C
2015-07-12 14:37 ` Eli Zaretskii
2015-07-12 15:08 ` Stefan Monnier
2015-07-12 15:28 ` Vaidheeswaran C
2015-07-12 16:25 ` Eli Zaretskii
[not found] ` <mailman.6782.1436714885.904.help-gnu-emacs@gnu.org>
2015-07-12 16:21 ` Rusi
2015-07-12 16:29 ` Rusi
[not found] ` <mailman.6780.1436713709.904.help-gnu-emacs@gnu.org>
2015-07-12 16:32 ` Rusi
2015-07-13 4:59 ` Dan Espen
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=61e558ef-6edb-4fd5-af12-7fa0d470c9c4@googlegroups.com \
--to=rustompmody@gmail.com \
--cc=help-gnu-emacs@gnu.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).