Compare commits
2 commits
f657642113
...
f9b5908719
Author | SHA1 | Date | |
---|---|---|---|
KemoNine | f9b5908719 | ||
KemoNine | 8f829a6d6c |
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
(defun kmn/org-agenda-on-top ()
|
||||||
|
(defvar parameters
|
||||||
|
'(window-parameters . ((no-other-window . t)
|
||||||
|
(no-delete-other-windows . t))))
|
||||||
|
|
||||||
|
(setq fit-window-to-buffer-horizontally t)
|
||||||
|
(setq window-resize-pixelwise t)
|
||||||
|
|
||||||
|
(interactive)
|
||||||
|
(display-buffer-in-side-window
|
||||||
|
(get-buffer "*Org Agenda*") `((side . top) (slot . 0)
|
||||||
|
(window-width . fit-window-to-buffer)
|
||||||
|
(preserve-size . (t . nil)) , parameters))
|
||||||
|
)
|
||||||
|
|
||||||
(add-hook 'after-init-hook (lambda ()
|
(add-hook 'after-init-hook (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(find-file "~/org/health/health_houdini.org")
|
; front load org-agenda so it doesnt reshuffle the frame layout on us
|
||||||
(find-file "~/org/orgzly/_habits.org")
|
|
||||||
(find-file "~/org/orgzly/_todo.org")
|
|
||||||
(find-file "~/org/_index.org")
|
|
||||||
(org-agenda nil "r")
|
(org-agenda nil "r")
|
||||||
|
; start with fresh frame
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
(split-window-below 15)
|
; show kmn's slipbox
|
||||||
(next-multiframe-window)
|
|
||||||
(find-file "~/org/orgzly/_slipbox.org")
|
(find-file "~/org/orgzly/_slipbox.org")
|
||||||
(split-window-below 15)
|
; split window for additional file to show
|
||||||
|
(split-window-below)
|
||||||
(next-multiframe-window)
|
(next-multiframe-window)
|
||||||
|
; show kmn health notes/data tracker
|
||||||
(find-file "~/org/health/health_mike.org")
|
(find-file "~/org/health/health_mike.org")
|
||||||
(next-multiframe-window)
|
; put agenda in top side window (works around org-mode limitations
|
||||||
(goto-char 0)
|
(kmn/org-agenda-on-top)
|
||||||
)
|
))
|
||||||
)
|
|
||||||
|
|
Reference in a new issue