commit 7695b623d5d70c4c260f19889a86e03ee03d6985
parent c5e5e5c1be2072b56a2eb1a1d7b0346ea2c4d0af
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 7 Feb 2019 14:54:10 +0100
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>
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/profiles/assets/bin/capture b/modules/profiles/assets/bin/capture
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+emacsclient -n -e '(org-capture)'+
\ No newline at end of file
diff --git a/modules/profiles/emacs.nix b/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