summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2024-11-11 12:06:21 +0800
committernoa2024-11-11 12:06:21 +0800
commit9bd1e2f5423bea34aead65911a3d88175a290319 (patch)
tree9b73b8e6720e509ab4fff03145ee4af68ea2c596 /emacs
parent7a8141c5166227cdbf24ea9cbd207e335be37523 (diff)
Add function to view ctrlj agenda using external program
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 5cbd521..f2061de 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -822,6 +822,11 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
   (consult-ripgrep "~/Documents/Notes"))
 (global-set-key (kbd "C-j C-s") #'noa/consult-rg-notes)
 
+(defun noa/agenda ()
+  "List agenda."
+  (interactive)
+  (async-shell-command "~/.config/Scripts/agenda" "*agenda*"))
+
 ;; so i can search for synonyms without using the internet
 (use-package wordnut
   :ensure t