From 5b9e4242900db898b21e3e8879bc12430ce8468f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 11 Jun 2026 16:48:04 -0700 Subject: oni-dashboard: Use ‘display-buffer’ instead of ‘switch-to-buffer’ --- emacs/.emacs.d/oni-dashboard.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/emacs/.emacs.d/oni-dashboard.el b/emacs/.emacs.d/oni-dashboard.el index c619546..194461f 100644 --- a/emacs/.emacs.d/oni-dashboard.el +++ b/emacs/.emacs.d/oni-dashboard.el @@ -2,9 +2,6 @@ (use-package dashboard :init - (dashboard-setup-startup-hook) - (run-with-idle-timer 300 t (lambda () (switch-to-buffer dashboard-buffer-name))) - (run-at-time "02:00" 86400 #'dashboard-open) (setq dashboard-navigator-buttons `((("💬";; ,(propertize " " 'display `(image :type svg :file ,(expand-file-name "search.svg" oni-gui-icons-dir) :ascent center :margin (5 . 0))) "Conversations" "Open pull requests" @@ -31,6 +28,10 @@ (lambda (&rest _) (browse-url "https://github.com/juked-social/punt-frontend/compare/main...staging")) default "[" "]")))) + (dashboard-setup-startup-hook) + (run-with-idle-timer 300 t (lambda () + (display-buffer dashboard-buffer-name '(display-buffer-full-frame)))) + (run-at-time "02:00" 86400 #'dashboard-open) (setq dashboard-set-navigator t) :config (setq dashboard-startup-banner "~/code/personal/dotfiles/oni/home/services/emacs/pop-os-logo.svg") @@ -42,4 +43,4 @@ ;; (add-hook 'dashboard-mode-hook 'olivetti-mode) (add-hook 'dashboard-after-initialize-hook (lambda () (setq truncate-lines t)))) -;; End fo oni-dashboard +;; End of oni-dashboard -- cgit v1.3-2-g0d8e