From 28ca5681a5ef0ac0c6e3453672461450ba758043 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 23 Jul 2024 18:01:14 +0300 Subject: dashboard: Create buffer on the same window. * Create dashboard on the same window instead of popping to a new one. "Popping" to a new window would mess up centering of strings on the main dashboard buffer. --- gnosis-dashboard.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnosis-dashboard.el') diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el index b664e6d..c89f4ea 100644 --- a/gnosis-dashboard.el +++ b/gnosis-dashboard.el @@ -193,7 +193,7 @@ Optionally, use REMOVE-SPACES when using multiple months." (defun gnosis-dashboard-output-notes (note-ids) "Return NOTE-IDS contents on gnosis dashboard." (cl-assert (listp note-ids) t "`note-ids' must be a list of note ids.") - (pop-to-buffer "*gnosis-dashboard*") + (pop-to-buffer-same-window "*gnosis-dashboard*") (gnosis-dashboard-mode) (setf tabulated-list-format `[("Main" ,(/ (window-width) 4) t) ("Options" ,(/ (window-width) 6) t) @@ -242,7 +242,7 @@ Optionally, use REMOVE-SPACES when using multiple months." (defun gnosis-dashboard-output-decks () "Return deck contents for gnosis dashboard." - (pop-to-buffer "*gnosis-dashboard*") + (pop-to-buffer-same-window "*gnosis-dashboard*") (gnosis-dashboard-mode) (setq tabulated-list-format [("Name" 15 t) ("failure-factor" 15 t) -- cgit v1.2.3