From 69e28944ab4f34eacf428a85c3a75ae442f52b1a Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 26 Oct 2025 14:08:18 +0100 Subject: emacs/niri: Add convenient capture shortcut --- gui/emacs.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gui/emacs.nix') diff --git a/gui/emacs.nix b/gui/emacs.nix index 92d7ae3..b5b40f6 100644 --- a/gui/emacs.nix +++ b/gui/emacs.nix @@ -89,12 +89,18 @@ ''; }; + org-capture-todo = pkgs.writeScriptBin "org-capture-todo" '' + #!/usr/bin/env bash + emacsclient -c -e '(custom/org-capture-frame "t")' -F '((name . "**Capture**"))' + ''; + in with pkgs; [ symbola (iosevka-bin.override { variant = "Aile"; }) (iosevka-bin.override { variant = "Etoile"; }) mu org-protocol-shortcut + org-capture-todo ]; home.file.".emacs.d/init.el".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/home/gui/conf/init.el"; @@ -104,4 +110,12 @@ services.emacs = { enable = true; }; + + xdg.desktopEntries.org-capture-todo = { + name = "Org Capture: TODO"; + comment = "Capture new todo using Emacs org-mode"; + exec = "org-capture-todo"; + terminal = false; + type = "Application"; + }; } -- cgit v1.2.3