reddit / emacs

Replacing doom-dashboard with dashboard?

SteveTheGreate ยท 2022-06-21 17:46
Hello, I'm running Doom Emacs, and I'm looking to replace the standard doom-dashboard package with the regular dashboard. I added the package to my packages.el file, added the config that I found on GitHub, and it's ready! There's just one problem. With doom-dashboard, whenever I open a new workspace, the dashboard shows up, and it's also the fallback buffer, meaning that I can't delete it. I think this is the code that gives it this functionality: ``` (when (equal (buffer-name) "*scratch*") (set-window-buffer nil (doom-fallback-buffer)) (+doom-dashboard-reload)) ``` With the regular dashboard however this is not the case, I made a quick little script that opens a new workspace and the dashboard at the same time, but it's not working too well: ``` (defun new-workspace () "Open a new workspace and open the dashboard at the same time" (interactive) (+workspace/new) (dashboard-refresh-buffer)) (global-set-key (kbd "M-n") 'new-workspace) ``` The problem is that if I close a workspace with the dashboard open, it dissapears from all other workspaces. Any help would be greatly appreciated!