diff options
author | jao <jao@gnu.org> | 2025-10-22 03:14:10 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-10-22 03:14:10 +0100 |
commit | fd477adc841d842d0fce4e1ce04ba17ec92f9c31 (patch) | |
tree | 2735c6827d23d761c415fd02d212e05ac74aaa76 | |
parent | 1283a71c34fd6ce4d0cde9bc84a900733ab22d59 (diff) | |
download | elibs-fd477adc841d842d0fce4e1ce04ba17ec92f9c31.tar.gz elibs-fd477adc841d842d0fce4e1ce04ba17ec92f9c31.tar.bz2 |
org agenda sans mode-line
-rw-r--r-- | custom/jao-custom-org.el | 12 |
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 |