Setup org-agenda launch script

This commit is contained in:
Antoine Martin 2022-04-11 21:59:34 +02:00
parent abc4af1deb
commit 21cf47a4be
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/config.el
/custom.el
/launch-agenda.el

View file

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