aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-06-11 16:48:04 -0700
committerGravatar Tom Willemse2026-06-11 16:48:04 -0700
commit5b9e4242900db898b21e3e8879bc12430ce8468f (patch)
tree4739020bbc83a8b49a10b472a1edc4ce9e6ce38e /emacs
parent8d216ed9e8ee98331373940ffd7439db2d6c65f4 (diff)
downloadnew-dotfiles-5b9e4242900db898b21e3e8879bc12430ce8468f.tar.gz
new-dotfiles-5b9e4242900db898b21e3e8879bc12430ce8468f.zip
oni-dashboard: Use ‘display-buffer’ instead of ‘switch-to-buffer’
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/oni-dashboard.el9
1 files 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