Archived
1
0
Fork 0

add key bind for 'previous-buffer ; add config to allow multiple org-agenda buffers ; update main org workspace to be a 2 column split so habits/scheduled/deadline tasks are in one agenda at the top and main to do list at bottom ; use enter to edit agenda items and the new 'C-c v' keybind to jump back to the agenda when done editing

This commit is contained in:
KemoNine 2023-04-15 11:00:11 -04:00
parent 4c1317d202
commit e0534e89c0
3 changed files with 51 additions and 14 deletions

View file

@ -199,6 +199,7 @@
(global-set-key (kbd "M-a") 'mark-whole-buffer) (global-set-key (kbd "M-a") 'mark-whole-buffer)
(global-set-key (kbd "C-a") 'kmn/smart-beginning-of-line) (global-set-key (kbd "C-a") 'kmn/smart-beginning-of-line)
(global-set-key (kbd "C-e") 'kmn/smart-end-of-line) (global-set-key (kbd "C-e") 'kmn/smart-end-of-line)
(global-set-key (kbd "C-c v") 'previous-buffer)
(global-set-key (kbd "C-c w") (global-set-key (kbd "C-c w")
(lambda () (lambda ()
(interactive) (interactive)
@ -257,6 +258,9 @@
; org mode syntax highlight code blocks ; org mode syntax highlight code blocks
(setq org-src-fontify-natively t) (setq org-src-fontify-natively t)
; org mode - multiple agenda buffers
(setq org-agenda-sticky t)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; set font for emoji -- DOES NOT WORK ON MOBILE ;; set font for emoji -- DOES NOT WORK ON MOBILE
(when (eq system-type 'windows-nt) (when (eq system-type 'windows-nt)

View file

@ -35,20 +35,21 @@
(delete-other-windows) (delete-other-windows)
(kmn/kill-other-buffers) (kmn/kill-other-buffers)
(ignore-errors (kill-buffer "*scratch*")) (ignore-errors (kill-buffer "*scratch*"))
; front load org-agenda so it doesnt reshuffle the frame layout on us ; top window for habits/scheduled
(org-agenda nil "r") (org-agenda nil "h")
(split-window-below)
(next-multiframe-window)
; show kmn's slipbox
(find-file "~/org/orgzly/_slipbox.org")
; split window for additional file to show
(split-window-below)
(next-multiframe-window)
; show kmn health notes/data tracker
(find-file "~/org/health/health_mike.org")
; switch to top of agenda window so most useful window is focused
(next-multiframe-window)
(goto-char 0) (goto-char 0)
; main todo/slipbox
(split-window-below)
(next-multiframe-window)
(org-agenda nil "t")
(goto-char 0)
; show kmn health notes/data tracker
;(split-window-below)
;(next-multiframe-window)
;(find-file "~/org/health/health_mike.org")
;(goto-char 0)
; focus top most frame
(next-multiframe-window)
) )
) )

View file

@ -133,7 +133,7 @@
(setq org-agenda-custom-commands (setq org-agenda-custom-commands
'( '(
("r" "Personal" ("r" "Personal (Combined)"
( (
(agenda "" ( (agenda "" (
(org-agenda-overriding-header "Scheduled") (org-agenda-overriding-header "Scheduled")
@ -161,6 +161,38 @@
)) ))
) )
) )
("h" "Personal (Habits/Scheduled)"
(
(agenda "" (
(org-agenda-overriding-header "Scheduled")
(org-agenda-remove-tags t)
(org-deadline-warning-days 14)
(org-agenda-entry-types '(:deadline :scheduled))
))
(agenda "" (
(org-agenda-overriding-header "Habits")
(org-agenda-files (list "~/org/orgzly/_habits.org"
"~/org/health/_meds.org"))
(org-agenda-remove-tags t)
))
)
)
("t" "Personal (Tasks)"
(
(todo "WIP" (
(org-agenda-overriding-header "WIP")
(org-agenda-remove-tags t)
))
(todo "READY" (
(org-agenda-overriding-header "Ready")
(org-agenda-remove-tags t)
))
(tags-todo "-TODO=\"WIP\"-TODO=\"READY\"" (
(org-agenda-overriding-header "")
(org-agenda-remove-tags t)
))
)
)
("d" "Destiny" ("d" "Destiny"
( (
(agenda "" ( (agenda "" (