1 Install Emacs

First install Emacs24

apt-get install emacs24

Second add emacs to systemd startup and create file ~/.local/share/systemd/user/emacsd.service with following content

[Unit]
Description=Emacs: the extensible, self-documenting text editor
Documentation=man:emacs(1) info:Emacs


[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook nil) (kill-emacs))"
Restart=on-failure
Environment=DISPLAY=:%i
TimeoutStartSec=0

[Install]
WantedBy=default.target

Now start the systemd service

systemctl enable --user emacs
systemctl start --user emacs

Change default link to emacs system-wide by creating file /usr/local/bin/emacsclient-x with content

#!/bin/sh
/usr/bin/emacsclient.emacs24 -c -a emacs $@

and installing it as alternative config

update-alternatives --install /usr/bin/emacs emacs /usr/local/bin/emacsclient-x 50

2 Gnome 3 .desktop file

Create file ~/.local/share/applications/emacsclient.desktop with content

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Name=GNU Emacs Client 24
GenericName=Text Editor
Comment=View and edit files
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=/usr/bin/emacsclient -c -a "" %F
Icon=/usr/share/icons/hicolor/scalable/apps/Emacs_Faenza.svg
Type=Application
Terminal=false
Categories=Utility;Development;TextEditor;
StartupWMClass=Emacs
Name[en_US]=GNU Emacs Client 24

Where Emacs_Faenza.svg is the icon I downloaded from the internet, but you can use any other. After that just add your icon to the side-bar and re-log your session.