all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient not integrated into modern window systems
@ 2015-07-11  3:24 Rusi
  2015-07-11 10:54 ` Rasmus
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Rusi @ 2015-07-11  3:24 UTC (permalink / raw)
  To: help-gnu-emacs

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)


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-07-13  4:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-11  3:24 emacsclient not integrated into modern window systems Rusi
2015-07-11 10:54 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.