Skip to content

Commit

Permalink
add org-agenda-spin-project function: rearrange the order of the agen…
Browse files Browse the repository at this point in the history
…da file to keep the project running evenly
  • Loading branch information
TakesxiSximada committed Apr 9, 2023
1 parent 36c5ccf commit 8770964
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,11 @@
(let ((proc (start-process "*SAY*" "*SAY*" "say" "--rate" "500")))
(process-send-region proc (region-beginning) (region-end))
(process-send-string proc "\n")))

;; org-mode
(defun org-agenda-spin-project ()
"Rearrange the order of the agenda file to keep the project running evenly"
(interactive)
(setq org-agenda-files
(append (cdr org-agenda-files)
(list (car org-agenda-files)))))

0 comments on commit 8770964

Please sign in to comment.