diff options
author | Thanos Apollo <[email protected]> | 2024-07-23 18:01:14 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-07-23 18:36:16 +0300 |
commit | 28ca5681a5ef0ac0c6e3453672461450ba758043 (patch) | |
tree | 44b07498eab66de7ee51c45e537b9281da443f9e | |
parent | 2f90fc6d6471697ed3750ed3f1941e7c2607e06e (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.
-rw-r--r-- | gnosis-dashboard.el | 4 |
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) |