mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +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;
|
||||
};
|
||||
|
||||
# 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user