summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-03-28 23:37:52 +0000
committerjao <jao@gnu.org>2024-03-28 23:37:52 +0000
commit76bd5b7251284a48d38e649fd00ebfa1e259a36d (patch)
treefe775398e8dc1ce5c200e91afc96356742cadf12 /custom
parent2732a6794748cf57e5db485c38c84f14e2f64e79 (diff)
downloadelibs-76bd5b7251284a48d38e649fd00ebfa1e259a36d.tar.gz
elibs-76bd5b7251284a48d38e649fd00ebfa1e259a36d.tar.bz2
more org agenda tweaks
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-org.el14
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