From ce285a51d696f9a77d2975b987be0e38e6d52fce Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 22 Nov 2022 23:14:44 -0800 Subject: [PATCH] [oni-org-roam] Display org-roam buffer in side window --- oni-org-roam.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oni-org-roam.el b/oni-org-roam.el index 113d686..d3cc1b5 100644 --- a/oni-org-roam.el +++ b/oni-org-roam.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.0921.234248 +;; Version: 2022.1122.231427 ;; Package-Requires: (oni-org org-roam) ;; This program is free software; you can redistribute it and/or modify @@ -66,6 +66,13 @@ (and (not (null state)) (not (string= state "FINISHED"))))) +(add-to-list 'display-buffer-alist + `(,(rx string-start "*org-roam*" string-end) + display-buffer-in-side-window + (side . right) + (slot . 0) + (window-width . 66))) + (add-hook 'window-state-change-hook #'oni-org-roam-auto-toggle-roam-buffer) (advice-add 'org-agenda :before #'oni-org-roam-update-todo-files)