~hristoast/dot-emacs

84f00f53eb4b4593399af32cc9960cca83f2596d — Hristos N. Triantafillou 7 months ago 0c88a2c
Prevent a startup error
1 files changed, 5 insertions(+), 2 deletions(-)

M lib/ui.el
M lib/ui.el => lib/ui.el +5 -2
@@ 72,8 72,11 @@
       dashboard-set-heading-icons t
       dashboard-startup-banner (gethash (or (getenv "EMACS_DASHBOARD_BANNER")
                                             h/dashboard/default-banner)
                                         h/dashboard/banners nil)
       initial-buffer-choice (lambda () (get-buffer "*dashboard*"))))))
                                         h/dashboard/banners nil))
      ;; Don't setup the dashboard when Emacs is started with files as command-line arguments.
      ;; https://github.com/emacs-dashboard/emacs-dashboard/issues/115#issuecomment-478167057
      (if (< (length command-line-args) 2)
          (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))))))

(unless (getenv "EMACS_NO_ALL_THE_ICONS")
  (progn