diff options
| author | Adrian Kummerlaender | 2025-10-26 14:08:18 +0100 |
|---|---|---|
| committer | Adrian Kummerlaender | 2025-10-26 14:08:18 +0100 |
| commit | 69e28944ab4f34eacf428a85c3a75ae442f52b1a (patch) | |
| tree | 78f1cc0887e297508614af2c03028a73d3fbe8a4 /gui/emacs.nix | |
| parent | 7b11a3c50d4451840a236626e3b968ae238d5cbf (diff) | |
| download | nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.tar nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.tar.gz nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.tar.bz2 nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.tar.lz nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.tar.xz nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.tar.zst nixos_home-69e28944ab4f34eacf428a85c3a75ae442f52b1a.zip | |
emacs/niri: Add convenient capture shortcutwayland
Diffstat (limited to 'gui/emacs.nix')
| -rw-r--r-- | gui/emacs.nix | 14 |
1 files changed, 14 insertions, 0 deletions
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"; + }; } |
