diff options
author | Adrian Kummerlaender | 2020-09-24 17:54:34 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2020-09-24 17:54:34 +0200 |
commit | 37dbd126860cc9ce9ec804375abf8be86a5f195b (patch) | |
tree | 55b5b036c91bd8ed7892f5c2956dfb5e44e58cc5 /gui/emacs.nix | |
parent | 5ad599ac83fc0b4a5f39294a2c97e9ce1cdb5e21 (diff) | |
download | nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.tar nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.tar.gz nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.tar.bz2 nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.tar.lz nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.tar.xz nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.tar.zst nixos_home-37dbd126860cc9ce9ec804375abf8be86a5f195b.zip |
Setup basic org-protocol support for web capturing
Using the "Org Capture" Firefox Extension.
Diffstat (limited to 'gui/emacs.nix')
-rw-r--r-- | gui/emacs.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gui/emacs.nix b/gui/emacs.nix index 37c135b..0ee6125 100644 --- a/gui/emacs.nix +++ b/gui/emacs.nix @@ -73,11 +73,27 @@ in { }; }; - home.packages = with pkgs; [ + home.packages = let + org-protocol-shortcut = pkgs.writeTextFile { + name = "org-protocol"; + executable = false; + destination = "/share/applications/org-protocol.desktop"; + text = '' + [Desktop Entry] + Type=Application + Name=Emacs (Client, Protocol) + Exec=emacsclient %u + Terminal=false + MimeType=x-scheme-handler/org-protocol + ''; + }; + + in with pkgs; [ source-sans-pro source-serif-pro emacs-all-the-icons-fonts mu + org-protocol-shortcut ]; # see https://github.com/rycee/home-manager/issues/589#issuecomment-466594137 |