Guest User

Untitled

a guest
Nov 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. $ cat ~/.local/share/applications/emacsclient.desktop
  2. #!/usr/bin/env xdg-open
  3.  
  4. [Desktop Entry]
  5. Version=1.0
  6. Name=GNU Emacs 24
  7. GenericName=Text Editor
  8. Comment=View and edit files
  9. 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++;
  10. Exec=/usr/bin/emacsclient -c -a "" %F
  11. Icon=/usr/share/icons/hicolor/scalable/apps/emacs-snapshot.svg
  12. Type=Application
  13. Terminal=false
  14. Categories=Utility;Development;TextEditor;
  15. StartupWMClass=Emacs
  16. Name[en_US]=GNU Emacs 24
  17.  
  18. Exec=/usr/bin/emacsclient -c -a "" %F
  19.  
  20. Exec=/usr/bin/emacsclient --create-frame --alternate-editor "" %F
  21.  
  22. -c, --create-frame Create a new frame instead of trying to
  23. use the current Emacs frame
  24. -a EDITOR, --alternate-editor=EDITOR
  25. Editor to fallback to if the server is not running
  26. If EDITOR is the empty string, start Emacs in daemon
  27. mode and try connecting again
  28.  
  29. [Desktop Entry]
  30. Version=1.0
  31. Name=GNU Emacs 25 (GUI)
  32. GenericName=Text Editor
  33. Comment=GNU Emacs is an extensible, customizable text editor - and more
  34. 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++;
  35. TryExec=/usr/bin/emacs25
  36. Exec=/usr/bin/emacs25 %F
  37. Icon=emacs25
  38. Type=Application
  39. Terminal=false
  40. Categories=Utility;Development;TextEditor;
  41. StartupWMClass=Emacs
  42. Keywords=Text;Editor;
Add Comment
Please, Sign In to add comment