-
-
Notifications
You must be signed in to change notification settings - Fork 139
Description
Hello there,
I'm pretty new to Emacs and to Lisp, so I don't have much experience. I've installed dashboard in my custom Emacs and I would like to be able to "reopen" the dashboard, like if the dashboard buffer is killed or closed I could call it with a shortcut.
That's what I've tried:
;; Remap Open Dashboard
(defun create-dashboard-buffer nil
"Create a dashboard buffer"
(interactive)
(switch-to-buffer (get-buffer-create "*dashboard*"))
(lisp-interaction-mode))
(global-set-key (kbd "C-S-d") 'create-dashboard-buffer)The problem is that, if the dashboard is "hidden" (I'm in another buffer), the get-buffer-create gives me a broken dashboard where it doesn't works.
If the dashboard is closed (I've killed it with C-x k), then I only receive an empty-buffer called dashboard. That's pretty obvious now that I've tried it, but I thought that dashboard was some kind of reserved word once the package was installed. lol
There is a way to "create" a "dashboard" like if I was restarting the Emacs and attach it to a keybinding?