aboutsummaryrefslogtreecommitdiff
path: root/gui/emacs.nix
diff options
context:
space:
mode:
authorAdrian Kummerlaender2025-10-28 15:10:59 +0100
committerAdrian Kummerlaender2025-10-28 15:10:59 +0100
commitef560bb1d546766e64b666b16377c3b06d4c1ce1 (patch)
tree465a05c63d3f291b256c499d282546ab516fdb03 /gui/emacs.nix
parente3bec319255b892140032f53a89c3d330e3f05ba (diff)
downloadnixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.tar
nixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.tar.gz
nixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.tar.bz2
nixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.tar.lz
nixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.tar.xz
nixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.tar.zst
nixos_home-ef560bb1d546766e64b666b16377c3b06d4c1ce1.zip
emacs/niri: Add agenda shortcutwayland
Diffstat (limited to 'gui/emacs.nix')
-rw-r--r--gui/emacs.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/gui/emacs.nix b/gui/emacs.nix
index b5b40f6..8d3e123 100644
--- a/gui/emacs.nix
+++ b/gui/emacs.nix
@@ -93,14 +93,20 @@
#!/usr/bin/env bash
emacsclient -c -e '(custom/org-capture-frame "t")' -F '((name . "**Capture**"))'
'';
+ org-show-agenda = pkgs.writeScriptBin "org-show-agenda" ''
+ #!/usr/bin/env bash
+ emacsclient -c -e '(custom/org-agenda-frame "a")' -F '((name . "**Agenda**"))'
+ '';
in with pkgs; [
symbola
(iosevka-bin.override { variant = "Aile"; })
(iosevka-bin.override { variant = "Etoile"; })
mu
+
org-protocol-shortcut
org-capture-todo
+ org-show-agenda
];
home.file.".emacs.d/init.el".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/home/gui/conf/init.el";
@@ -118,4 +124,12 @@
terminal = false;
type = "Application";
};
+
+ xdg.desktopEntries.org-show-agenda = {
+ name = "Org Agenda";
+ comment = "Show today's agenda";
+ exec = "org-show-agenda";
+ terminal = false;
+ type = "Application";
+ };
}