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]].