users/foo-dogsquared/programs/doom-emacs: add org-protocol support

This commit is contained in:
Gabriel Arazas 2024-09-01 22:38:26 +08:00
parent 126cd15234
commit fbc6df4445
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -71,10 +71,19 @@ in
socketActivation.enable = true;
};
# Add org-protocol support.
xdg.desktopEntries.org-protocol = {
name = "Org protocol";
exec = "emacsclient %u";
icon = "emacs-icon";
mimeType = [ "x-scheme-handler/org-protocol" ];
};
xdg.mimeApps.defaultApplications = {
"application/json" = [ "emacs.desktop" ];
"text/org" = [ "emacs.desktop" ];
"text/plain" = [ "emacs.desktop" ];
"x-scheme-handler/org-protocol" = [ "org-protocol.desktop" ];
};
};
}