Skip to content

Commit

Permalink
fix(dashboard): do not show when Emacs started with a file
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Apr 15, 2023
1 parent b8d9d91 commit ebe1a9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/me-core-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ Useful for keeping track of the enabled theme."
:config
;; Ensure setting the keybindings before openning the dashboard
(evil-collection-dashboard-setup)
(dashboard-open))

;; Avoid openning the dashboard when Emacs starts with an open file.
(when (zerop (length (seq-filter #'identity (mapcar #'buffer-file-name (buffer-list)))))
(dashboard-open)))

(use-package doom-modeline
:straight t
Expand Down

0 comments on commit ebe1a9a

Please sign in to comment.