Archived
1
0
Fork 0

Compare commits

...

2 commits

2 changed files with 31 additions and 17 deletions

View file

@ -66,6 +66,7 @@
(lambda () (lambda ()
(local-set-key (kbd "y") 'kmn/org-habit-with-date))) (local-set-key (kbd "y") 'kmn/org-habit-with-date)))
(setq org-agenda-use-time-grid nil) (setq org-agenda-use-time-grid nil)
(setq org-agenda-window-setup "current-window")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Set some org agendas/dashboards ; Set some org agendas/dashboards

View file

@ -8,21 +8,34 @@
; Personal startup screen (Desktop) ; Personal startup screen (Desktop)
; - preferred org agenda as dedicated window at the top of the frame, n lines high ; - preferred org agenda as dedicated window at the top of the frame, n lines high
; - common org files open in the bottom window ; - common org files open in the bottom window
(add-hook 'after-init-hook (lambda () (defun kmn/org-agenda-on-top ()
(interactive) (defvar parameters
(find-file "~/org/health/health_houdini.org") '(window-parameters . ((no-other-window . t)
(find-file "~/org/orgzly/_habits.org") (no-delete-other-windows . t))))
(find-file "~/org/orgzly/_todo.org")
(find-file "~/org/_index.org") (setq fit-window-to-buffer-horizontally t)
(org-agenda nil "r") (setq window-resize-pixelwise t)
(delete-other-windows)
(split-window-below 15) (interactive)
(next-multiframe-window) (display-buffer-in-side-window
(find-file "~/org/orgzly/_slipbox.org") (get-buffer "*Org Agenda*") `((side . top) (slot . 0)
(split-window-below 15) (window-width . fit-window-to-buffer)
(next-multiframe-window) (preserve-size . (t . nil)) , parameters))
(find-file "~/org/health/health_mike.org")
(next-multiframe-window)
(goto-char 0)
)
) )
(add-hook 'after-init-hook (lambda ()
(interactive)
; front load org-agenda so it doesnt reshuffle the frame layout on us
(org-agenda nil "r")
; start with fresh frame
(delete-other-windows)
; 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")
; put agenda in top side window (works around org-mode limitations
(kmn/org-agenda-on-top)
))