ui/doom-dashboard: major refactor

+ Fix default-directory not being set properly when switching
  perspectives. ie. Add persp-mode integration (#347, #360)
+ Ensure dashboard initializes properly, at the right time to ensure
  benchmark is properly reported (fix #361)
This commit is contained in:
Henrik Lissner 2018-01-20 02:53:06 -05:00
parent 381a4416ed
commit 0d83834ac7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 144 additions and 108 deletions

View file

@ -22,9 +22,7 @@
(def-test! dashboard-p
(let ((fallback-buffer (doom-fallback-buffer)))
(should (equal (buffer-name fallback-buffer) +doom-dashboard-name))
(should (+doom-dashboard-p fallback-buffer))
(with-current-buffer fallback-buffer
(should (+doom-dashboard-p)))))
(should (+doom-dashboard-p fallback-buffer))))
(def-test! get-pwd
:minor-mode projectile-mode