diff options
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 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"; + }; } |
