summaryrefslogtreecommitdiff
path: root/tw/home/files/emacsclient.desktop
diff options
context:
space:
mode:
authorTimo Wilken2023-03-04 19:15:21 +0100
committerTimo Wilken2023-03-04 19:15:21 +0100
commit5503426a6b8343c04e348ce0669af17c93291dc1 (patch)
tree5ee578fbd09447795e18b4c02e25163974286060 /tw/home/files/emacsclient.desktop
parent2e7145ca7550b35026fa5de0683cdbf588f45012 (diff)
Declare XDG file type associations
Diffstat (limited to 'tw/home/files/emacsclient.desktop')
-rw-r--r--tw/home/files/emacsclient.desktop22
1 files changed, 22 insertions, 0 deletions
diff --git a/tw/home/files/emacsclient.desktop b/tw/home/files/emacsclient.desktop
new file mode 100644
index 00000000..5e68ffef
--- /dev/null
+++ b/tw/home/files/emacsclient.desktop
@@ -0,0 +1,22 @@
+[Desktop Entry]
+Name=Emacs (Client)
+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 --alternate-editor= --create-frame %F
+Icon=emacs
+Type=Application
+Terminal=false
+Categories=Development;TextEditor;
+StartupNotify=true
+StartupWMClass=Emacs
+Keywords=emacsclient;
+Actions=new-window;new-instance;
+
+[Desktop Action new-window]
+Name=New Window
+Exec=emacsclient --alternate-editor= --create-frame %F
+
+[Desktop Action new-instance]
+Name=New Instance
+Exec=emacs %F