From 21cf47a4be6536d699ab6e63f7fee970bbce219b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 11 Apr 2022 21:59:34 +0200 Subject: [PATCH] Setup org-agenda launch script --- .gitignore | 1 + config.org | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 7eaa106..da9d093 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /config.el /custom.el +/launch-agenda.el diff --git a/config.org b/config.org index 52073fa..966b083 100644 --- a/config.org +++ b/config.org @@ -33,6 +33,7 @@ - [[#main-agenda-view][Main agenda view]] - [[#habits][Habits]] - [[#save-all-org-buffers-shortcut][Save all org buffers shortcut]] + - [[#script-to-open-agenda-window-automatically][Script to open agenda window automatically]] - [[#roam][Roam]] - [[#roam-directory][Roam Directory]] - [[#org-roam-ui][org-roam-ui]] @@ -429,6 +430,18 @@ By default bound to =C-x C-s=, rebind it to =SPC m s= in =org-agenda-mode= : "s" #'org-save-all-org-buffers) #+END_SRC +*** Script to open agenda window automatically + +I use this script to automatically open the agenda when pressing a specific key binding in my window manager. + +#+begin_src emacs-lisp :tangle "launch-agenda.el" +(find-file org-directory) +(with-selected-window (split-window-horizontally) + ;; need to wait for the window to appear + (sleep-for 0.1) + (org-agenda nil " ")) +#+end_src + ** Roam Setup for [[https://github.com/jethrokuan/org-roam][org-roam]].