summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-10-26 01:19:55 +0100
committerjao <jao@gnu.org>2025-10-26 01:19:55 +0100
commit4b31890749764fc53089b0856e360a1dfba25e6e (patch)
tree3f05ab418e0cfafd94ccfecefdba5208b608622c /custom
parent34df315a58bf898fc93f63bd0e3ec74e7f61f1b7 (diff)
downloadelibs-4b31890749764fc53089b0856e360a1dfba25e6e.tar.gz
elibs-4b31890749764fc53089b0856e360a1dfba25e6e.tar.bz2
looks (agenda)
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-org.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/custom/jao-custom-org.el b/custom/jao-custom-org.el
index bf82bcc..9dd6ab9 100644
--- a/custom/jao-custom-org.el
+++ b/custom/jao-custom-org.el
@@ -92,22 +92,21 @@
(defun jao-org-agenda ()
(interactive)
- (org-agenda nil "j"))
+ (org-agenda nil "j")
+ (jao-org-agenda-hook))
-(defun jao-org-agenda-hook ()
- (when-let* ((w (get-buffer-window "*Org Agenda*")))
+(defun jao-org-agenda-hook (&optional w)
+ (when-let* ((w (or 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-finalize-hook #'jao-org-agenda-hook)
-
(add-to-list 'display-buffer-alist
'((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)))))
+ (body-function . jao-org-agenda-hook)))
;;; Capture templates
(setq org-capture-templates