rework org-mode workspace to avoid issues with agenda being in a side window
This commit is contained in:
parent
4b9d4acb0c
commit
a72c1eff63
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; open org agenda in top side window
|
; open org agenda in top side window
|
||||||
|
; BUGGED AND UNUSED, agenda does NOT work properly in side windows
|
||||||
(defun kmn/org-agenda-on-top ()
|
(defun kmn/org-agenda-on-top ()
|
||||||
(defvar parameters
|
(defvar parameters
|
||||||
'(window-parameters . ((no-other-window . t)
|
'(window-parameters . ((no-other-window . t)
|
||||||
|
|
|
@ -25,10 +25,13 @@
|
||||||
; org-mode workspace
|
; org-mode workspace
|
||||||
(defun kmn/workspace-org ()
|
(defun kmn/workspace-org ()
|
||||||
(interactive)
|
(interactive)
|
||||||
; front load org-agenda so it doesnt reshuffle the frame layout on us
|
|
||||||
(org-agenda nil "r")
|
|
||||||
; start with fresh frame
|
; start with fresh frame
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
|
(kmn/kill-other-buffers)
|
||||||
|
; front load org-agenda so it doesnt reshuffle the frame layout on us
|
||||||
|
(org-agenda nil "r")
|
||||||
|
(split-window-below)
|
||||||
|
(next-multiframe-window)
|
||||||
; show kmn's slipbox
|
; show kmn's slipbox
|
||||||
(find-file "~/org/orgzly/_slipbox.org")
|
(find-file "~/org/orgzly/_slipbox.org")
|
||||||
; split window for additional file to show
|
; split window for additional file to show
|
||||||
|
@ -36,8 +39,7 @@
|
||||||
(next-multiframe-window)
|
(next-multiframe-window)
|
||||||
; show kmn health notes/data tracker
|
; show kmn health notes/data tracker
|
||||||
(find-file "~/org/health/health_mike.org")
|
(find-file "~/org/health/health_mike.org")
|
||||||
; put agenda in top side window (works around org-mode limitations
|
; switch to top of agenda window so most useful window is focused
|
||||||
(kmn/org-agenda-on-top)
|
|
||||||
(next-multiframe-window)
|
(next-multiframe-window)
|
||||||
(goto-char 0)
|
(goto-char 0)
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue