diff options
-rw-r--r-- | custom/jao-custom-org.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/custom/jao-custom-org.el b/custom/jao-custom-org.el index 7549737..e4a242e 100644 --- a/custom/jao-custom-org.el +++ b/custom/jao-custom-org.el @@ -77,7 +77,19 @@ (defun jao-org-agenda () (interactive) - (let ((org-agenda-overriding-header " ")) (org-agenda-list))) + (let ((org-agenda-overriding-header " ")) + (org-agenda-list))) + +(defun jao-org-agenda-hook () + (setq-local cursor-in-non-selected-windows nil)) + +(add-hook 'org-agenda-mode-hook #'jao-org-agenda-hook) + +(add-to-list 'display-buffer-alist + '((major-mode . org-agenda-mode) + (display-buffer-reuse-window) + (body-function . (lambda (w) (set-window-margins w 2))))) + ;;; Capture templates (setq org-capture-templates |