Commit 7695b623d5d7

Vincent Demeester <vincent@sbr.pm>
2019-02-07 14:54:10
emacs: add `capture` script in case of destop profile ๐Ÿ•
This `capture` script can be used to quickly capture content (journal, task, โ€ฆ) from anywhere in my desktop environment. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent c5e5e5c
Changed files (2)
modules
profiles
modules/profiles/assets/bin/capture
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+emacsclient -n -e '(org-capture)'
\ No newline at end of file
modules/profiles/emacs.nix
@@ -185,6 +185,12 @@ in
         ];
       };
     }
+    (mkIf config.profiles.desktop.enable {
+      home.file."bin/capture" = {
+        source = ./assets/bin/capture;
+        executable = true;
+      };
+    })
     (mkIf config.services.gpg-agent.enable {
       services.gpg-agent.extraConfig = ''
         allow-emacs-pinentry