summaryrefslogtreecommitdiff
path: root/gnosis-dashboard.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-23 18:01:14 +0300
committerThanos Apollo <[email protected]>2024-07-23 18:36:16 +0300
commit28ca5681a5ef0ac0c6e3453672461450ba758043 (patch)
tree44b07498eab66de7ee51c45e537b9281da443f9e /gnosis-dashboard.el
parent2f90fc6d6471697ed3750ed3f1941e7c2607e06e (diff)
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.
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r--gnosis-dashboard.el4
1 files changed, 2 insertions, 2 deletions
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)