]> git.eshelyaron.com Git - emacs.git/commitdiff
Make emacsclient handle org-protocol:// links
authorIhor Radchenko <yantar92@posteo.net>
Wed, 23 Aug 2023 09:24:18 +0000 (12:24 +0300)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 1 Sep 2023 18:50:06 +0000 (20:50 +0200)
Org mode provides a way to quickly capture bookmarks, notes, and links
using emacsclient:

    emacsclient "org-protocol://store-link?url=URL&title=TITLE"

* etc/emacsclient.desktop: Make Emacs the default application for
org-protocol.  (Bug#65469)

etc/emacsclient.desktop

index a9f840c703369f524e2b91edb1198a7a8972190e..4395d3b02bc3a19cd4be98f70ec7ead44f9b36f7 100644 (file)
@@ -2,7 +2,7 @@
 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++;
+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++;x-scheme-handler/org-protocol;
 Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F
 Icon=emacs
 Type=Application