summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-05-24 11:59:26 -0500
committerCraig Jennings <c@cjennings.net>2025-05-24 11:59:26 -0500
commitf9176904e95d392d45c26e37c5354e4d575f3b05 (patch)
tree662b81321031f48ffac11d76084b792f13c303e3 /modules
parent1d39ad69ef50f731f2ef25e4b88381bab1ad4440 (diff)
downloaddotemacs-f9176904e95d392d45c26e37c5354e4d575f3b05.tar.gz
dotemacs-f9176904e95d392d45c26e37c5354e4d575f3b05.zip
don't display dashboard when starting a file
Diffstat (limited to 'modules')
-rw-r--r--modules/dashboard-config.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/dashboard-config.el b/modules/dashboard-config.el
index aa6ea286d..c17503cf5 100644
--- a/modules/dashboard-config.el
+++ b/modules/dashboard-config.el
@@ -7,6 +7,8 @@
;;; Code:
+
+
;; ------------------------ Dashboard Bookmarks Override -----------------------
;; overrides the bookmark insertion from the dashboard package to provide an
;; option that only shows the bookmark name, avoiding the path. Paths are often
@@ -86,7 +88,9 @@
;; == general
(dashboard-setup-startup-hook) ;; run dashboard post emacs init
- ;; (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) ;; display dashboard on startup
+
+ (if (< (length command-line-args) 2)
+ (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))) ;; don't display dashboard if opening a file
(setq dashboard-display-icons-p t) ;; display icons on both GUI and terminal
(setq dashboard-icon-type 'nerd-icons) ;; use `nerd-icons' package
(setq dashboard-center-content t) ;; horizontally center dashboard content