mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
users/foo-dogsquared/programs/doom-emacs: add org-protocol support
This commit is contained in:
parent
126cd15234
commit
fbc6df4445
@ -71,10 +71,19 @@ in
|
|||||||
socketActivation.enable = true;
|
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 = {
|
xdg.mimeApps.defaultApplications = {
|
||||||
"application/json" = [ "emacs.desktop" ];
|
"application/json" = [ "emacs.desktop" ];
|
||||||
"text/org" = [ "emacs.desktop" ];
|
"text/org" = [ "emacs.desktop" ];
|
||||||
"text/plain" = [ "emacs.desktop" ];
|
"text/plain" = [ "emacs.desktop" ];
|
||||||
|
"x-scheme-handler/org-protocol" = [ "org-protocol.desktop" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user