summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-10-22 03:14:10 +0100
committerjao <jao@gnu.org>2025-10-22 03:14:10 +0100
commitfd477adc841d842d0fce4e1ce04ba17ec92f9c31 (patch)
tree2735c6827d23d761c415fd02d212e05ac74aaa76
parent1283a71c34fd6ce4d0cde9bc84a900733ab22d59 (diff)
downloadelibs-fd477adc841d842d0fce4e1ce04ba17ec92f9c31.tar.gz
elibs-fd477adc841d842d0fce4e1ce04ba17ec92f9c31.tar.bz2
org agenda sans mode-line
-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