summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-org.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/custom/jao-custom-org.el b/custom/jao-custom-org.el
index 9dabf2d..bf82bcc 100644
--- a/custom/jao-custom-org.el
+++ b/custom/jao-custom-org.el
@@ -95,16 +95,20 @@
(org-agenda nil "j"))
(defun jao-org-agenda-hook ()
- (setq-local cursor-in-non-selected-windows nil))
+ (when-let* ((w (get-buffer-window "*Org Agenda*")))
+ (set-window-margins w 2 1)
+ (with-current-buffer (window-buffer w)
+ (setq-local cursor-in-non-selected-windows nil
+ line-spacing 0.2))))
-(add-hook 'org-agenda-mode-hook #'jao-org-agenda-hook)
+(add-hook 'org-agenda-finalize-hook #'jao-org-agenda-hook)
(add-to-list 'display-buffer-alist
- '("\\*Org Agenda\\*"
+ '((major-mode . org-agenda-mode)
(display-buffer-reuse-window)
+ (window-parameters (mode-line-format . none))
(body-function . (lambda (w) (set-window-margins w 2 1)))))
-
;;; Capture templates
(setq org-capture-templates
'(("t" "TODO" entry