Fixed org calendar issue

This commit is contained in:
Misha 2025-04-08 13:18:29 +02:00
parent b582016851
commit 361aa8547d
2 changed files with 9 additions and 4 deletions
other-config

View file

@ -1790,8 +1790,12 @@ For example for when you're running code and immediately want to check the outpu
(progn
(let ((org-agenda-window-setup 'current-window))
(split-window-below) ;; Split the window horizontally
(other-window 1) ;; Move to the new window
(org-agenda-list)))
(other-window 1) ;; Move to the new window
(org-agenda nil "a")
(org-agenda-week-view)
;; (org-agenda-list)
;; (org-agenda-week-view)
))
(progn
(message "There is only one window open.")
@ -1861,7 +1865,7 @@ For example for when you're running code and immediately want to check the outpu
"/home/misha/Nextcloud/calendar/amor.org"
)))
(let ((agenda-date (if (derived-mode-p 'org-agenda-mode) (get-date-from-agenda) nil)))
(if (> (count-windows) 1)
(if (and (> (count-windows) 1) (not (org-calendar-window-open-p)))
(split-window-below))
(org-capture)
(if (not (string-match "CAPTURE-todo" (buffer-name)))
@ -2855,7 +2859,7 @@ Zie ook [[*ORG-MSG (compose and save attachment)][ORG-MSG]] voor hooks:
(run-with-timer 1 nil '(lambda ()
(other-window 1)
(goto-char (point-max))
(previous-logical-line 17)))
(previous-logical-line 19)))
(save-excursion (mv/read-mail))
)

View file

@ -8,5 +8,6 @@
- For a new token, run ~python3 get_token.py~
- Move new token to pass
** SMTP
- This script works with an /encrypted/ token.
- To create an encrypted token:
- python3 mutt_oauth2.py TOKEN_FILENAME --authorize (localhostauthcode)